Lines 108-114
Link Here
|
108 |
d->ctx = SSL_CTX_new(SSLv23_method()); |
108 |
d->ctx = SSL_CTX_new(SSLv23_method()); |
109 |
die_unless(d->ctx, "SSL_CTX_new failed"); |
109 |
die_unless(d->ctx, "SSL_CTX_new failed"); |
110 |
|
110 |
|
111 |
res = SSL_CTX_use_certificate_file(d->ctx, buf, SSL_FILETYPE_PEM); |
111 |
res = SSL_CTX_use_certificate_chain_file(d->ctx, buf, SSL_FILETYPE_PEM); |
112 |
die_unless(res > 0, "SSL_CTX_use_certificate_file failed"); |
112 |
die_unless(res > 0, "SSL_CTX_use_certificate_file failed"); |
113 |
|
113 |
|
114 |
res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM); |
114 |
res = SSL_CTX_use_PrivateKey_file(d->ctx, buf, SSL_FILETYPE_PEM); |