Skip to content

Commit

Permalink
Merge pull request #871 from kali/0.9.x
Browse files Browse the repository at this point in the history
accept cert chain files as well as single cert files
  • Loading branch information
seanmonstar authored Jul 26, 2016
2 parents 3608382 + eeb1f48 commit 13e2bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ mod openssl {
where C: AsRef<Path>, K: AsRef<Path> {
let mut ctx = try!(SslContext::new(SslMethod::Sslv23));
try!(ctx.set_cipher_list("DEFAULT"));
try!(ctx.set_certificate_file(cert.as_ref(), X509FileType::PEM));
try!(ctx.set_certificate_chain_file(cert.as_ref(), X509FileType::PEM));
try!(ctx.set_private_key_file(key.as_ref(), X509FileType::PEM));
ctx.set_verify(SSL_VERIFY_NONE, None);
Ok(Openssl { context: Arc::new(ctx) })
Expand Down

0 comments on commit 13e2bb3

Please sign in to comment.