mirror of
https://github.com/CAcertOrg/cats.git
synced 2024-11-03 04:34:04 +00:00
Commented in the correct functions!
This commit is contained in:
parent
73ccca3694
commit
7a213874f2
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue