Research Article
The Prediction of Serial Number in OpenSSL’s X.509 Certificate
Algorithm 3
The function of set_cert_time. set_cert_time(X509 x, const char startdate, const char enddate, int days).
Input: x, startdate, enddate, days | |
Output: x | |
If(startdate==NULL) | |
X509_gmtime_adj(s,0) | |
else | |
… | |
If (enddate==NULL) | |
X509_time_adj_ex(s,days,0,0) | |
else | |
... |