This commit is contained in:
Tomasz Ziolkowski
2021-08-04 13:05:21 +02:00
parent 1900ea3bb3
commit 59552a7a76
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -245,8 +245,8 @@ setup_ctx(char* key, char* cert)
SSL_CTX_set_security_level(ctx, 0); /* for keys in tests */
#endif
if(!SSL_CTX_use_certificate_chain_file(ctx, cert)) {
int e = ERR_peek_error();
printf("error string: %s\n", ERR_reason_error_string(e));
int e = ERR_peek_error();
printf("error string: %s\n", ERR_reason_error_string(e));
print_exit("cannot read cert");
}
if(!SSL_CTX_use_PrivateKey_file(ctx, key, SSL_FILETYPE_PEM))