From: Michael Friedrich Date: Fri, 2 Oct 2015 09:41:54 +0000 (+0200) Subject: Fix openssl certificate not after overflow on rhel5 X-Git-Tag: v2.3.11~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72c19fe32de027445db2ce832360b1f7b5d3bb48;p=icinga2 Fix openssl certificate not after overflow on rhel5 refs #10266 --- 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);