Fix openssl certificate not after overflow on rhel5

refs #10266
This commit is contained in:
Michael Friedrich 2015-10-02 11:41:54 +02:00
parent c4209e6841
commit f0a5a0c23c
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ boost::shared_ptr<X509> CreateCert(EVP_PKEY *pubkey, X509_NAME *subject, X509_NA
X509 *cert = X509_new();
X509_set_version(cert, 2);
X509_gmtime_adj(X509_get_notBefore(cert), 0);
X509_gmtime_adj(X509_get_notAfter(cert), 365 * 24 * 60 * 60 * 30);
X509_gmtime_adj(X509_get_notAfter(cert), 365 * 24 * 60 * 60 * 15);
X509_set_pubkey(cert, pubkey);
X509_set_subject_name(cert, subject);