Fossil SCM

Fix to the --ssl-identity issue described at [forum:/forumpost/6e2b2ee5316b7aef|forum post 6e2b2ee5316b7aef].

drh 2021-09-03 12:21 trunk
Commit 82b42943b191defacf4c4022a9e1ee22c9061a86d5608d559b563bc13ea510ea
1 file changed +1 -1
+1 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -143,11 +143,11 @@
143143
identityFile = g.zSSLIdentity;
144144
}else{
145145
identityFile = db_get("ssl-identity", 0);
146146
}
147147
if( identityFile!=0 && identityFile[0]!='\0' ){
148
- if( SSL_CTX_use_certificate_file(sslCtx,identityFile,SSL_FILETYPE_PEM)!=1
148
+ if( SSL_CTX_use_certificate_chain_file(sslCtx,identityFile)!=1
149149
|| SSL_CTX_use_PrivateKey_file(sslCtx,identityFile,SSL_FILETYPE_PEM)!=1
150150
){
151151
fossil_fatal("Could not load SSL identity from %s", identityFile);
152152
}
153153
}
154154
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -143,11 +143,11 @@
143 identityFile = g.zSSLIdentity;
144 }else{
145 identityFile = db_get("ssl-identity", 0);
146 }
147 if( identityFile!=0 && identityFile[0]!='\0' ){
148 if( SSL_CTX_use_certificate_file(sslCtx,identityFile,SSL_FILETYPE_PEM)!=1
149 || SSL_CTX_use_PrivateKey_file(sslCtx,identityFile,SSL_FILETYPE_PEM)!=1
150 ){
151 fossil_fatal("Could not load SSL identity from %s", identityFile);
152 }
153 }
154
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -143,11 +143,11 @@
143 identityFile = g.zSSLIdentity;
144 }else{
145 identityFile = db_get("ssl-identity", 0);
146 }
147 if( identityFile!=0 && identityFile[0]!='\0' ){
148 if( SSL_CTX_use_certificate_chain_file(sslCtx,identityFile)!=1
149 || SSL_CTX_use_PrivateKey_file(sslCtx,identityFile,SSL_FILETYPE_PEM)!=1
150 ){
151 fossil_fatal("Could not load SSL identity from %s", identityFile);
152 }
153 }
154

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button