diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-08-30 07:34:35 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-08-30 07:34:35 +0200 |
commit | 85216d3d95505c19a57d3bbe74e8a7eca109a8e6 (patch) | |
tree | 11be5cfbb3a1ab2854013be14f0728ea2d2a346a /sys/man/8 | |
parent | 7bb1a9a18566ea9c8ae7f6c2fa99e448026521d2 (diff) |
auth/rsa2asn1: implement private key export with -a flag (thanks kvik)
kvik writes:
I needed to convert the RSA private key that was laying around in
secstore into a format understood by UNIX® tools like SSH.
With asn12rsa(8) we can go from the ASN.1/DER to Plan 9 format, but not
back - so I wrote the libsec function asn1encodeRSApriv(2) and used it in
rsa2asn1(8) by adding the -a flag which causes the full private key to be
encoded and output.
Diffstat (limited to 'sys/man/8')
-rw-r--r-- | sys/man/8/rsa | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/man/8/rsa b/sys/man/8/rsa index 40309c165..57a24e5ae 100644 --- a/sys/man/8/rsa +++ b/sys/man/8/rsa @@ -28,6 +28,9 @@ rsagen, rsafill, asn12rsa, rsa2asn1, rsa2pub, rsa2ssh, rsa2x509, rsa2csr \- gene .PP .B rsa2asn1 [ +-a +] +[ .I file ] .PP @@ -182,6 +185,9 @@ Comment attributes are preserved. is like .I rsa2pub but outputs the public key in ASN.1/DER format. +With the +.I -a +flag a private key is read and encoded in ANS.1/DER format. .PP .I Rsa2ssh reads a Plan 9 RSA public or private key and prints the public portion |