|
NameOpenXPKI::Crypto::Backend::OpenSSL::ConfigDescriptionThis module was designed to create an OpenSSL configuration on the fly for the various operations of OpenXPKI. The module support the following different section types:
Functions
The first argument is mandatory, all other element can be empty or even left out. If a revocation time is specified, it is used as the revocation timestamp in the generated CRL. The timestamp is specified in seconds since epoch. The reason code is accepted literally. It should be one of 'unspecified', 'keyCompromise', 'CACompromise', 'affiliationChanged', 'superseded', 'cessationOfOperation', The reason codes 'certificateHold', 'removeFromCRL'. are currently not handled correctly and should be avoided. However, they will currently simply be passed in the CRL which may not have the desired result. If the reason code is incorrect, a warning is logged and the reason code is set to 'unspecified' in order to make sure the certificate gets revoked at all. Invalidity timestamp is only used in conjunction with a reason code of keyCompromise. The timestamp is specified in seconds since epoch.
Examplemy $profile = OpenXPKI::Crypto::Backend::OpenSSL::Config->new ( { TMP => '/tmp', }); $profile->set_engine($engine); $profile->set_profile($crl_profile); $profile->dump(); my $conf = $profile->get_config_filename(); ... execute an OpenSSL command with "-config $conf" ... ... or execute an OpenSSL command with "OPENSSL_CONF=$conf openssl" ...See AlsoOpenXPKI::Crypto::Profile::Base, OpenXPKI::Crypto::Profile::CRL, OpenXPKI::Crypto::Profile::Certificate and OpenXPKI::Crypto::Backend::OpenSSL
Visit the GSP FreeBSD Man Page Interface. |