Difference between revisions of "OpenSSL/SSH"

From wiki
Jump to navigation Jump to search
(Created page with ";openssl rsa -text -noout -in id_rsa :Print out key attributes (o.a. key length)")
 
m (Hdridder moved page OpenSSL to OpenSSL/SSH: Better covers the content)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
[[Category:Networking]]
 
;openssl rsa -text -noout -in id_rsa
 
;openssl rsa -text -noout -in id_rsa
 
:Print out key attributes (o.a. key length)
 
:Print out key attributes (o.a. key length)
 +
;openssl s_client -showcerts -connect <system><nowiki>:</nowiki><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>

Latest revision as of 21:33, 4 November 2020

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>