use CTX_use_certificate_chain_file
Apocalypse
11 years ago
0 | 0 |
Revision history for Perl extension POE::Component::SSLify.
|
1 | 1 |
|
2 | 2 |
{{$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...
|
3 | 7 |
|
4 | 8 |
1.003
|
5 | 9 |
Released: 2011-02-28 15:52:24 UTC
|
257 | 257 |
|
258 | 258 |
# Set the cert file
|
259 | 259 |
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 );
|
261 | 261 |
die_if_ssl_error( 'certificate' ) if ! $IGNORE_SSL_ERRORS;
|
262 | 262 |
}
|
263 | 263 |
|