Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Running "ssh-keygen -t dsa" generates two files, if given input "key1" as the file name:

key1

and

key.pub

However, I've also seen ".pem" files used, for example, in AWS.

Whats the relationship between the .pem file and other SSH created artifacts?

share|improve this question
add comment

2 Answers

In ssh connections, keys are exchanged.

key1 is the private key and key.pub is the public key.

Read more at: Public-key cryptography

The .pem files are certificates (in base64) , exchanged in HTTPS protocol (TLS/SSL). Read more at: X.509

share|improve this answer
add comment

Check here and here for a good explanation about the various formats and the tool used to generate the keys.

share|improve this answer
2  
certainly i could read these two articles but this answer is borderline tldr –  jayunit100 Jan 2 '13 at 20:22
    
well, i guess when in rome -- theres also this one. serverfault.com/questions/461528/… –  jayunit100 Jan 2 '13 at 20:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.