modify Certificate validity period

This commit is contained in:
eaglegai 2023-03-10 07:23:14 +00:00
parent 3a7f986927
commit 03d8b2898c

View File

@ -23,7 +23,7 @@
Name: postfix
Summary: Postfix Mail Transport Agent
Version: 3.3.1
Release: 13
Release: 14
Epoch: 2
URL: http://www.postfix.org
License: (IBM and GPLv2+) or (EPL-2.0 and GPLv2+)
@ -384,7 +384,7 @@ if [ ! -f %{sslcert} ]; then
FQDN=localhost.localdomain
fi
%{_bindir}/openssl req -new -key %{sslkey} -x509 -sha256 -days 365 -set_serial $RANDOM -out %{sslcert} \
%{_bindir}/openssl req -new -key %{sslkey} -x509 -sha256 -days 730 -set_serial $RANDOM -out %{sslcert} \
-subj "/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=${FQDN}/emailAddress=root@${FQDN}"
chmod 644 %{sslcert}
fi
@ -566,6 +566,12 @@ fi
%{postfix_doc_dir}/README_FILES/*
%changelog
* Fri Mar 10 2023 gaihuiying <eaglegai@163.com> - 2:3.3.1-14
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify Certificate validity period
* Fri Sep 16 2022 xingwei <xingwei14@h-partners.com> - 2:3.3.1-13
- Type:bugfix
- ID:NA