diff --git a/Changes b/Changes index 15ee336..909b0a4 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,10 @@ Revision history for Perl extension POE::Component::SSLify. {{$NEXT}} + + We now load certificate files via CTX_use_certificate_chain_file(), thanks Zephaniah E. Loss-Cutler-Hull + OpenSSL docs suggest it - http://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html#NOTES + PLEASE yell at me if you need the old functionality - the docs suggest this is the "better" way to do it... 1.003 Released: 2011-02-28 15:52:24 UTC diff --git a/lib/POE/Component/SSLify.pm b/lib/POE/Component/SSLify.pm index 7b750a8..a0b61f7 100644 --- a/lib/POE/Component/SSLify.pm +++ b/lib/POE/Component/SSLify.pm @@ -258,7 +258,7 @@ # Set the cert file if ( defined $cert ) { - Net::SSLeay::CTX_use_certificate_file( $context, $cert, &Net::SSLeay::FILETYPE_PEM ); + Net::SSLeay::CTX_use_certificate_chain_file( $context, $cert ); die_if_ssl_error( 'certificate' ) if ! $IGNORE_SSL_ERRORS; }