This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENSSH-PRIVATEKEY FORMAT for non encrypted ssh-ed25519 | |
https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key | |
https://github.com/openssh/openssh-portable/blob/master/sshkey.c :2957 | |
https://github.com/openssh/openssh-portable/blob/master/cipher.c | |
https://github.com/openssh/openssh-portable/blob/master/sshbuf-getput-basic.c | |
OpenSSH key format prefixes most content with content length (uint32 + data). | |
All integers in OpenSSH key are encoded in big endian. | |
Example of openssh private key: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Root-CA: | |
1) openssl genrsa -aes256 -out localhost-root-ca.key 4096 | |
2) openssl req -out localhost-root-ca.csr -key localhost-root-ca.key -new -sha256 | |
CN = localhost | |
-or- | |
CN = fully qualified domain name | |
3) openssl x509 -req -days 3000 -in localhost-root-ca.csr -signkey localhost-root-ca.key -out localhost-root-ca.pem -sha256 |