MAN page from OpenSuSE perl-OpenXPKI-Core-0.9.1389-6.362.CS.i586.rpm
OpenXPKI::Crypto::Backend::OpenSSL::Command::convert_key
Section: User Contributed Perl Documentation (3)
Updated: 2008-09-30
Index Name
OpenXPKI::Crypto::Backend::OpenSSL::Command::convert_key
Description
This command should perform all conversions of keys. This includessimple format conversions from
PEM to
DER and real tranformationsfrom proprietary OpenSSL
RSA and
DSA key to PKCS#8 format.
If there is a conversion towards PKCS#8 the result is always PEMencoded. If you need a DER encoded PKCS#8 key then you must convertthe returned PEM encoded key again to DER.
If you convert a RSA or DSA key from OpenSSL's proprietary formattowards PKCS#8 then you must support us with a passphrase.
To convert to OpenSSL's propietary format, you need to specifythe key type, i.e. 'OPENSSL_RSA' as output format. If you need todeal with keys with different types, you can get the type withthe 'get_pkcs8_keytype' command.
Functions
get_command
- *
- IN (RSA, DSA, PKCS8)
- *
- OUT (DER, PEM, PKCS8)
- *
- DATA
- *
- PASSWD
- *
- OUT_PASSWD (optional)
- *
- ENC_ALG (optional)
hide_output
returns 1
key_usage
returns 1 (private key must be decoded first)
get_result
simply returns the converted key
Index
- Name
- Description
- Functions
- get_command
- hide_output
- key_usage
- get_result
This document was created byman2html,using the manual pages.