mirror of
https://github.com/znc/znc.git
synced 2026-07-04 08:51:14 +02:00
CUtils::GenerateCert(): Set the issuer name
This hopefully fixes sf.net#2855717. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1732 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -99,6 +99,7 @@ void CUtils::GenerateCert(FILE *pOut, const CString& sHost) {
|
||||
X509_NAME_add_entry_by_txt(pName, "emailAddress", MBSTRING_ASC, (unsigned char *)sEmailAddr.c_str(), -1, -1, 0);
|
||||
|
||||
X509_set_subject_name(pCert, pName);
|
||||
X509_set_issuer_name(pCert, pName);
|
||||
|
||||
if (!X509_sign(pCert, pKey, EVP_md5())) {
|
||||
X509_free(pCert);
|
||||
|
||||
Reference in New Issue
Block a user