Fix x509.c so it creates serial number file again if no
serial number is supplied on command line.
This commit is contained in:
parent
6c9f57d629
commit
78df5a2f1e
@ -606,9 +606,12 @@ bad:
|
|||||||
sno = ASN1_INTEGER_new();
|
sno = ASN1_INTEGER_new();
|
||||||
if (!sno || !rand_serial(NULL, sno))
|
if (!sno || !rand_serial(NULL, sno))
|
||||||
goto end;
|
goto end;
|
||||||
|
if (!X509_set_serialNumber(x, sno))
|
||||||
|
goto end;
|
||||||
|
ASN1_INTEGER_free(sno);
|
||||||
|
sno = NULL;
|
||||||
}
|
}
|
||||||
|
else if (!X509_set_serialNumber(x, sno))
|
||||||
if (!X509_set_serialNumber(x, sno))
|
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
if (!X509_set_issuer_name(x,req->req_info->subject)) goto end;
|
if (!X509_set_issuer_name(x,req->req_info->subject)) goto end;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user