Skip to content

Issue creating alice.pub using SSH private key #3

@jeremyevans

Description

@jeremyevans

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions