Difference between revisions of "OpenSSL/SSH"
Jump to navigation
Jump to search
m |
|||
Line 6: | Line 6: | ||
;openssl x509 -outform der -in <pemfile> -out <filename>.der -text | ;openssl x509 -outform der -in <pemfile> -out <filename>.der -text | ||
:Convert to DER format. | :Convert to DER format. | ||
+ | |||
+ | ;ssh-keygen -t ed25519 | ||
+ | :Create a keypair (accept all defaults, put a password if you want) | ||
+ | ;ssh-keygen -y -f <privatkeyfile> | ||
+ | :Print the public key for the private key in <privatkeyfile> |
Revision as of 09:08, 6 August 2019
- openssl rsa -text -noout -in id_rsa
- Print out key attributes (o.a. key length)
- openssl s_client -showcerts -connect <system>:<port>
- Get the certificates available and test connectivity
- openssl x509 -outform der -in <pemfile> -out <filename>.der -text
- Convert to DER format.
- ssh-keygen -t ed25519
- Create a keypair (accept all defaults, put a password if you want)
- ssh-keygen -y -f <privatkeyfile>
- Print the public key for the private key in <privatkeyfile>