Commit 1aaab14a authored by Stefan Fritsch's avatar Stefan Fritsch

if the FQDN is too long, put it in the SubjAltName

... and use the simple hostname as CN
parent 50c34dc6
......@@ -2,6 +2,10 @@ ssl-cert (1.0.29) UNRELEASED; urgency=low
* Add support for subject alternative names. Thanks to Jonas Smedegaard for
the patch. Closes: #645515
(Sorry to all translators for adding a template so close to the freeze.)
* For "make-ssl-cert generate-default-snakeoil", if the FQDN is too long,
put it in the SubjAltName and use the simple hostname as CN.
Closes: #674598
* Add Catalan translation. Thanks to Innocent De Marchi. Closes: #628373
* Bump Standards-Version (no changes).
* Switch VCS to git
......
......@@ -44,6 +44,10 @@ make_snakeoil() {
echo make-ssl-cert: 'make-ssl-cert generate-default-snakeoil --force-overwrite'
echo make-ssl-cert: again.
fi
if [ ${#HostName} -gt 64 ] ; then
AltName="DNS:$HostName"
HostName="$(hostname)"
fi
}
create_temporary_cnf() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment