-# $OpenBSD: Makefile,v 1.4 2021/10/15 16:49:12 jsing Exp $
+# $OpenBSD: Makefile,v 1.5 2022/07/07 11:40:17 tb Exp $
PROG= ssltest
LDADD= -lcrypto -lssl
regress-ssltest: ${PROG}
sh ${.CURDIR}/testssl \
- ${.CURDIR}/../certs/server.pem ${.CURDIR}/../certs/server.pem \
- ${.CURDIR}/../certs/ca.pem
+ ${.CURDIR}/../certs/server1-rsa.pem ${.CURDIR}/../certs/server1-rsa-chain.pem \
+ ${.CURDIR}/../certs/ca-root-rsa.pem
.include <bsd.regress.mk>
-/* $OpenBSD: ssltest.c,v 1.33 2021/11/21 21:40:45 tb Exp $ */
+/* $OpenBSD: ssltest.c,v 1.34 2022/07/07 11:40:17 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
EC_KEY_free(ecdh);
}
- if (!SSL_CTX_use_certificate_file(s_ctx, server_cert,
- SSL_FILETYPE_PEM)) {
+ if (!SSL_CTX_use_certificate_chain_file(s_ctx, server_cert)) {
ERR_print_errors(bio_err);
} else if (!SSL_CTX_use_PrivateKey_file(s_ctx,
(server_key ? server_key : server_cert), SSL_FILETYPE_PEM)) {
}
if (client_auth) {
- SSL_CTX_use_certificate_file(c_ctx, client_cert,
- SSL_FILETYPE_PEM);
+ SSL_CTX_use_certificate_chain_file(c_ctx, client_cert);
SSL_CTX_use_PrivateKey_file(c_ctx,
(client_key ? client_key : client_cert),
SSL_FILETYPE_PEM);