rsa-converter/README.md

26 lines
826 B
Markdown
Raw Permalink Normal View History

2015-03-01 21:55:58 +01:00
rsa-converter
2014-07-20 04:10:30 +02:00
================
2015-03-01 21:55:58 +01:00
This is a script that will convert RSA keys between various formats.
2014-07-20 04:07:20 +02:00
2015-03-01 21:58:20 +01:00
usage: ./rsa-converter [-hrdpqs] < file
2014-07-20 04:07:20 +02:00
-h : print this message
-r : output public key in Base64 RFC 3110 format
-d : output public key in hexadecimal DER format
-p : output public key in PEM format
2015-03-01 21:55:58 +01:00
-q : output private key in PEM format (must supply a private key)
-s : output private key in Racoon/strongSwan < 5.0 format (must supply a private key)
2014-07-20 04:07:20 +02:00
## System requirements
* OpenSSL
* Perl
* CPAN modules:
* Crypt::OpenSSL::RSA
* Crypt::OpenSSL::Bignum
2014-07-22 05:54:55 +02:00
* Parse::RecDescent
### Debian-based systems
`apt-get install libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl libparse-recdescent-perl`
2015-03-01 21:55:58 +01:00
### CPAN
`cpan install Crypt::OpenSSL::RSA Crypt::OpenSSL::Bignum Parse::RecDescent`