]> granicus.if.org Git - icinga2/commitdiff
Fix openssl certificate not after overflow on rhel5
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 2 Oct 2015 09:41:54 +0000 (11:41 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 13 Oct 2015 10:20:57 +0000 (12:20 +0200)
refs #10266

lib/base/tlsutility.cpp

index 1f40bdae8beb8d258d4dd9fde5c5ffb62cb7ecf5..d491c091b4c8b004c9128880acd10bbbb9979441 100644 (file)
@@ -373,7 +373,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);