!33 modify Certificate validity period
From: @eaglegai Reviewed-by: @seuzw Signed-off-by: @seuzw
This commit is contained in:
commit
ef57f64d21
10
postfix.spec
10
postfix.spec
@ -23,7 +23,7 @@
|
|||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.7.2
|
Version: 3.7.2
|
||||||
Release: 3
|
Release: 4
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||||
@ -381,7 +381,7 @@ if [ ! -f %{sslcert} ]; then
|
|||||||
FQDN=localhost.localdomain
|
FQDN=localhost.localdomain
|
||||||
fi
|
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}"
|
-subj "/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=${FQDN}/emailAddress=root@${FQDN}"
|
||||||
chmod 644 %{sslcert}
|
chmod 644 %{sslcert}
|
||||||
fi
|
fi
|
||||||
@ -555,6 +555,12 @@ fi
|
|||||||
%{postfix_doc_dir}/README_FILES/*
|
%{postfix_doc_dir}/README_FILES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 10 2023 gaihuiying <eaglegai@163.com> - 2:3.7.2-4
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:modify Certificate validity period
|
||||||
|
|
||||||
* Fri Sep 30 2022 Funda Wang <fundawang@yeah.net> - 2:3.7.2-3
|
* Fri Sep 30 2022 Funda Wang <fundawang@yeah.net> - 2:3.7.2-3
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user