提交 78df5a2f 编写于 作者: D Dr. Stephen Henson

Fix x509.c so it creates serial number file again if no

serial number is supplied on command line.
上级 6c9f57d6
......@@ -606,9 +606,12 @@ bad:
sno = ASN1_INTEGER_new();
if (!sno || !rand_serial(NULL, sno))
goto end;
if (!X509_set_serialNumber(x, sno))
goto end;
ASN1_INTEGER_free(sno);
sno = NULL;
}
if (!X509_set_serialNumber(x, sno))
else if (!X509_set_serialNumber(x, sno))
goto end;
if (!X509_set_issuer_name(x,req->req_info->subject)) goto end;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册