1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Merge pull request #801 from scottjg/ssl-chain-file

Use SSL_CTX_use_certificate_chain_file for full chain
This commit is contained in:
Evan Phoenix 2015-11-06 09:56:23 -08:00
commit 6d39ae4168

View file

@ -136,7 +136,7 @@ VALUE engine_init_server(VALUE self, VALUE mini_ssl_ctx) {
ctx = SSL_CTX_new(SSLv23_server_method());
conn->ctx = ctx;
SSL_CTX_use_certificate_file(ctx, RSTRING_PTR(cert), SSL_FILETYPE_PEM);
SSL_CTX_use_certificate_chain_file(ctx, RSTRING_PTR(cert));
SSL_CTX_use_PrivateKey_file(ctx, RSTRING_PTR(key), SSL_FILETYPE_PEM);
if (!NIL_P(ca)) {