Skip to content
Snippets Groups Projects
Commit 40f8efd5 authored by deuce's avatar deuce
Browse files

We also need to set the SELFSIGNED attribute.

parent 4907e409
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,8 @@ CRYPT_CONTEXT DLLCALL get_ssl_cert(scfg_t *cfg, char estr[SSL_ESTR_LEN])
goto failure_return_2;
if(!DO(cryptSetAttribute(ssl_cert, CRYPT_CERTINFO_SUBJECTPUBLICKEYINFO, ssl_context)))
goto failure_return_3;
if(!DO(cryptSetAttribute(ssl_cert, CRYPT_CERTINFO_SELFSIGNED, 1)))
goto failure_return_3;
if(!DO(cryptSetAttributeString(ssl_cert, CRYPT_CERTINFO_COUNTRYNAME, "ZZ", 2)))
goto failure_return_3;
if(!DO(cryptSetAttributeString(ssl_cert, CRYPT_CERTINFO_ORGANIZATIONNAME, cfg->sys_name, strlen(cfg->sys_name))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment