Commented in the correct functions!

This commit is contained in:
Bernhard Fröhlich 2015-11-27 20:41:54 +00:00
parent 73ccca3694
commit 7a213874f2

View file

@ -207,9 +207,10 @@ do {
Net::SSLeay::CTX_load_verify_locations($ctx, $CAfile, 0); Net::SSLeay::CTX_load_verify_locations($ctx, $CAfile, 0);
# Add client certificate # Add client certificate
Net::SSLeay::set_cert_and_key($ctx, $CertFile, $KeyFile); # set_cert_and_key does not load a chain file, so use the low-level functions
#Net::SSLeay::CTX_use_certificate_chain_file($ctx, $CertFile); #Net::SSLeay::set_cert_and_key($ctx, $CertFile, $KeyFile);
#Net::SSLeay::CTX_use_PrivateKey_file($ctx, $KeyFile, &Net::SSLeay::FILETYPE_PEM); Net::SSLeay::CTX_use_certificate_chain_file($ctx, $CertFile);
Net::SSLeay::CTX_use_PrivateKey_file($ctx, $KeyFile, &Net::SSLeay::FILETYPE_PEM);
$ssl = Net::SSLeay::new($ctx) or die_now("Failed to create SSL $!"); $ssl = Net::SSLeay::new($ctx) or die_now("Failed to create SSL $!");
Net::SSLeay::set_fd($ssl, fileno(S)); # Must use fileno Net::SSLeay::set_fd($ssl, fileno(S)); # Must use fileno