Skip to content

Commit d51ec49

Browse files
committed
openssl: do not trust local cert chain as CA
1 parent cb1a473 commit d51ec49

1 file changed

Lines changed: 1 addition & 17 deletions

File tree

src/tcp.c

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,23 +1484,7 @@ relpTcpInitTLS(relpTcp_t *const pThis)
14841484
} else
14851485
pThis->pEngine->dbgprint((char*)"relpTcpInitTLS: Successfully initialized CA certificate #1\n");
14861486
} else {
1487-
/* Init CA from own Certificate */
1488-
if( pThis->ownCertFile != NULL ) {
1489-
if (SSL_CTX_load_verify_locations(ctx, pThis->ownCertFile, NULL) != 1) {
1490-
callOnErr(pThis, (char*)"relpTcpInitTLS: Error, Certificate could not be accessed."
1491-
" Is the file at the right path? And do we have the permissions?\n",
1492-
RELP_RET_ERR_TLS_SETUP);
1493-
/* Output Additional OpenSSL output */
1494-
relpTcpLastSSLErrorMsg(0, pThis, "relpTcpInitTLS");
1495-
ABORT_FINALIZE(RELP_RET_ERR_TLS_SETUP);
1496-
} else
1497-
pThis->pEngine->dbgprint(
1498-
(char*)"relpTcpInitTLS: Successfully initialized CA Certificate #2\n");
1499-
}
1500-
1501-
if(pThis->ownCertFile == NULL) {
1502-
pThis->pEngine->dbgprint((char*)"relpTcpInitTLS: CA certificate MISSING\n");
1503-
}
1487+
pThis->pEngine->dbgprint((char*)"relpTcpInitTLS: CA certificate MISSING\n");
15041488
}
15051489
finalize_it:
15061490
LEAVE_RELPFUNC;

0 commit comments

Comments
 (0)