Package list libpoe-component-sslify-perl / d7914f5
use CTX_use_certificate_chain_file Apocalypse 10 years ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 Revision history for Perl extension POE::Component::SSLify.
11
22 {{$NEXT}}
3
4 We now load certificate files via CTX_use_certificate_chain_file(), thanks Zephaniah E. Loss-Cutler-Hull <warp-spam_perl@aehallh.com>
5 OpenSSL docs suggest it - http://www.openssl.org/docs/ssl/SSL_CTX_use_certificate.html#NOTES
6 PLEASE yell at me if you need the old functionality - the docs suggest this is the "better" way to do it...
37
48 1.003
59 Released: 2011-02-28 15:52:24 UTC
257257
258258 # Set the cert file
259259 if ( defined $cert ) {
260 Net::SSLeay::CTX_use_certificate_file( $context, $cert, &Net::SSLeay::FILETYPE_PEM );
260 Net::SSLeay::CTX_use_certificate_chain_file( $context, $cert );
261261 die_if_ssl_error( 'certificate' ) if ! $IGNORE_SSL_ERRORS;
262262 }
263263