7
2
|
The following command generates a file which contains both public and private key:
Source: here With OpenSSL, the private key contains the public key information as well, so a public key doesn’t need to be generated separately How can we extract the public key from the privkey.pem file? Thanks. |
||
add comment |
20
|
That writes the public key to |
||||||||
|
1
|
For those interested in the details – you can see what’s inside the public key file (generated as explained above), by doing this:-
or for the private key file, this:-
which outputs as text on the console the actual components of the key (modulus, exponents, primes, …) |