mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-04 12:24:33 +02:00
parent
ad33dcb07a
commit
c953104783
@ -394,7 +394,7 @@ boost::shared_ptr<X509> CreateCert(EVP_PKEY *pubkey, X509_NAME *subject, X509_NA
|
|||||||
|
|
||||||
std::ofstream ofp;
|
std::ofstream ofp;
|
||||||
ofp.open(serialfile.CStr());
|
ofp.open(serialfile.CStr());
|
||||||
ofp << std::hex << serial + 1;
|
ofp << std::hex << std::setw(2) << std::setfill('0') << serial + 1;
|
||||||
ofp.close();
|
ofp.close();
|
||||||
|
|
||||||
if (ofp.fail())
|
if (ofp.fail())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user