Go to file
Ryan Riske d12414ada0 Update README.md
Typo in usage()
2015-03-01 14:58:20 -06:00
.gitignore Initial commit 2014-07-19 20:53:40 -05:00
COPYING Change to WTFPLv2 2015-02-22 21:32:31 -06:00
README.md Update README.md 2015-03-01 14:58:20 -06:00
rsa-converter Typo in usage() 2015-03-01 14:57:35 -06:00

rsa-converter

This is a script that will convert RSA keys between various formats.

usage: ./rsa-converter [-hrdpqs] < file
 -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
 -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)

System requirements

  • OpenSSL
  • Perl
  • CPAN modules:
    • Crypt::OpenSSL::RSA
    • Crypt::OpenSSL::Bignum
    • Parse::RecDescent

Debian-based systems

apt-get install libcrypt-openssl-bignum-perl libcrypt-openssl-rsa-perl libparse-recdescent-perl

CPAN

cpan install Crypt::OpenSSL::RSA Crypt::OpenSSL::Bignum Parse::RecDescent