Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue creating alice.pub using SSH private key #3

Open
jeremyevans opened this issue Oct 8, 2019 · 0 comments
Open

Issue creating alice.pub using SSH private key #3

jeremyevans opened this issue Oct 8, 2019 · 0 comments

Comments

@jeremyevans
Copy link

I RTFM, decided to use my ssh private key, then ran:

$ pwd
/home/jeremy/.opm/private
$ head -n 1 ~/.ssh/id_rsa                                                                                                                                                                      
-----BEGIN OPENSSH PRIVATE KEY-----
$ openssl req -x509 -new -key ~/.ssh/id_rsa -days 365 -subj '/C=HU/ST=*/L=*/O=*/OU=*/CN=Alice/' -out alice.pub
unable to load Private Key
21718428824288:error:09FFF06C:PEM routines:CRYPTO_internal:no start line:/usr/src/lib/libcrypto/pem/pem_lib.c:694:Expecting: ANY PRIVATE KEY

Did I screw up, or does the man page need updating?

Generating a new key using the openssl instructions in the man page does work. However, we should probably use chmod 600 alice.key after generating the key.

This may be obvious to some, but maybe we should use $USER.pub instead of alice.pub in the man page to make it more clear the username should be used instead of a literal alice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant