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

  1. SYNOPSIS
  2. DESCRIPTION
  3. FUNCTIONS
  4. AUTHOR

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