From 72c19fe32de027445db2ce832360b1f7b5d3bb48 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 2 Oct 2015 11:41:54 +0200 Subject: [PATCH] Fix openssl certificate not after overflow on rhel5 refs #10266 --- lib/base/tlsutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/tlsutility.cpp b/lib/base/tlsutility.cpp index 1f40bdae8..d491c091b 100644 --- a/lib/base/tlsutility.cpp +++ b/lib/base/tlsutility.cpp @@ -373,7 +373,7 @@ boost::shared_ptr 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);