Steffen Ullrich > IO-Socket-SSL-2.010 > IO::Socket::SSL::Utils

Download:
IO-Socket-SSL-2.010.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  5
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

IO::Socket::SSL::Utils -- loading, storing, creating certificates and keys

SYNOPSIS ^

    use IO::Socket::SSL::Utils;
    my $cert = PEM_file2cert('cert.pem');  # load certificate from file
    my $string = PEM_cert2string($cert);   # convert certificate to PEM string
    CERT_free($cert);                      # free memory within OpenSSL

    my $key = KEY_create_rsa(2048);        # create new 2048-bit RSA key
    PEM_string2file($key,"key.pem");       # and write it to file
    KEY_free($key);                        # free memory within OpenSSL

DESCRIPTION ^

This module provides various utility functions to work with certificates and private keys, shielding some of the complexity of the underlying Net::SSLeay and OpenSSL.

FUNCTIONS ^

AUTHOR ^

Steffen Ullrich

syntax highlighting: