Skip to content

Commit

Permalink
Switch to using SSL_CTX_use_certificate_chain_file() so that certific…
Browse files Browse the repository at this point in the history
…ate bundles (#250)

can be used. Patch from @daniel-sullivan, resolves #204

	modified:   src/ssl.c
  • Loading branch information
sevan committed May 26, 2016
1 parent a6e9196 commit 54668a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ openssl_verify_peer(openssl_env *env, int mode) {
int
openssl_use_certificate(openssl_env *env, char *file) {
if (file)
if (SSL_CTX_use_certificate_file(env->ctx, file, SSL_FILETYPE_PEM) > 0)
if (SSL_CTX_use_certificate_chain_file(env->ctx, file) > 0)
return 1;
syslog(LOG_ERR, "%s: could not load certificate file %s\n", strerror(errno), file);
return 0;
Expand Down

0 comments on commit 54668a4

Please sign in to comment.