Crypt-OpenSSL-PKCS10
view release on metacpan or search on metacpan
NID_ext_key_usage
BUGS
If you destroy $req object that is linked to a Crypt::OpenSSL::RSA
object, the RSA private key is also freed, thus you can't use latter
object anymore. Avoid this:
my $rsa = Crypt::OpenSSL::RSA->generate_key(512);
my $req = Crypt::OpenSSL::PKCS10->new_from_rsa($rsa);
undef $req;
print $rsa->get_private_key_string();
SEE ALSO
"Crypt::OpenSSL::RSA", "Crypt::OpenSSL::X509".
AUTHOR
JoNO, <jonozzz@yahoo.com>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by JoNO
lib/Crypt/OpenSSL/PKCS10.pm view on Meta::CPAN
require XSLoader;
XSLoader::load('Crypt::OpenSSL::PKCS10', $VERSION);
# Preloaded methods go here.
sub new_from_rsa {
my $self = shift;
my $rsa = shift;
my ($options) = shift || ();
my $priv = $rsa->get_private_key_string();
$self->_new_from_rsa($rsa, $priv, \%{$options});
}
sub new {
my $self = shift;
my $keylen;
my $options;
lib/Crypt/OpenSSL/PKCS10.pm view on Meta::CPAN
NID_ext_key_usage
=head1 BUGS
If you destroy $req object that is linked to a Crypt::OpenSSL::RSA object, the RSA private key is also freed,
thus you can't use latter object anymore. Avoid this:
my $rsa = Crypt::OpenSSL::RSA->generate_key(512);
my $req = Crypt::OpenSSL::PKCS10->new_from_rsa($rsa);
undef $req;
print $rsa->get_private_key_string();
=head1 SEE ALSO
C<Crypt::OpenSSL::RSA>, C<Crypt::OpenSSL::X509>.
=head1 AUTHOR
JoNO, E<lt>jonozzz@yahoo.comE<gt>
=head1 COPYRIGHT AND LICENSE
t/openssl.cnf view on Meta::CPAN
dir = .
[ ca ]
default_ca = CA_default
[ CA_default ]
serial = $dir/serial
database = $dir/certindex.txt
new_certs_dir = $dir/certs
certificate = $dir/cacert.pem
private_key = $dir/private/cakey.pem
default_days = 365
default_md = md5
preserve = no
email_in_dn = no
nameopt = default_ca
certopt = default_ca
policy = policy_match
[ policy_match ]
countryName = match
( run in 0.247 second using v1.01-cache-2.11-cpan-a5abf4f5562 )