mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
woops, created a req, needed to create a signed cert
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@162 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -75,7 +75,13 @@ void CUtils::GenerateCert( FILE *pOut, bool bEncPrivKey ) {
|
||||
X509_REQ_set_subject_name( pReq, pName );
|
||||
X509_REQ_sign( pReq, pKey, EVP_md5() );
|
||||
|
||||
PEM_write_X509_REQ( pOut, pReq );
|
||||
X509 *pX509 = X509_REQ_to_X509( pReq, 365, pKey );
|
||||
if ( pX509 )
|
||||
{
|
||||
PEM_write_X509( pOut, pX509 );
|
||||
X509_free( pX509 );
|
||||
}
|
||||
|
||||
X509_REQ_free( pReq );
|
||||
EVP_PKEY_free( pKey );
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user