RSA, Certificates and Chain of trust Flashcards

1
Q

what is .pem file extension used for?

A

pem is extension that is used for files that include certificates. And also we can use that extension for storage of private key.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what does the below openssl command do?

openssl genrsa -aes256 -out private.pem

A

generates a encrypted private key. Encryption is done using aes256 algorithm. This key is saved to a output file name private.pem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

openssl genrsa -aes256 -out private.pem

In this command that is used to generate a key, we see it is a private key. Where then is the public key?

A

Public key is also encoded here in private key and we are able to extract it from this private key.

And for that you can use other command.

openssl rsa -in private.pem -outform PEM -pubout -out public.pem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does this command do?

openssl rsa -in private.pem -outform PEM -pubout -out public.pem

A

this will extract the public key out of the file private.pem, and save it to the file public.pem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly