* Sat Apr 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
- fix script to recomment keys [SME: 12612] now comments rsa, dsa, ecdsa,ed25519. dropped rsa1
This commit is contained in:
parent
0d6a3cc276
commit
eb410e3e74
@ -84,14 +84,15 @@ SKIP: {
|
|||||||
|
|
||||||
my $db = esmith::ConfigDB->open_ro or die "Could not open config db";
|
my $db = esmith::ConfigDB->open_ro or die "Could not open config db";
|
||||||
|
|
||||||
# Recomment the key in case the SystemName or DomainName changed.
|
for my $typek (qw(dsa rsa ecdsa ed25519)) {
|
||||||
my @change = (-f "/etc/ssh/ssh_host_key") ? ("-c", "-P", "")
|
# Recomment the key in case the SystemName or DomainName changed.
|
||||||
|
my @change = (-f "/etc/ssh/ssh_host_${typek}_key") ? ("-c", "-P", "")
|
||||||
: ("-q", "-N", "");
|
: ("-q", "-N", "");
|
||||||
|
|
||||||
esmith::util::backgroundCommand (0,
|
esmith::util::backgroundCommand (0,
|
||||||
"/usr/bin/ssh-keygen", @change, "-t", "rsa1",
|
"/usr/bin/ssh-keygen", @change, "-t", "$typek",
|
||||||
"-f", "/etc/ssh/ssh_host_key",
|
"-f", "/etc/ssh/ssh_host_key",
|
||||||
"-C", "root@" . $db->get('SystemName')->value . "." . $db->get('DomainName')->value);
|
"-C", "root@" . $db->get('SystemName')->value . "." . $db->get('DomainName')->value);
|
||||||
|
}
|
||||||
exit (0);
|
exit (0);
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ Summary: smeserver module to configure and enable ssh
|
|||||||
%define name smeserver-openssh
|
%define name smeserver-openssh
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
%define version 11.0.0
|
%define version 11.0.0
|
||||||
%define release 6
|
%define release 7
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: %{release}%{?dist}
|
Release: %{release}%{?dist}
|
||||||
License: GPL
|
License: GPL
|
||||||
@ -24,6 +24,10 @@ Provides: e-smith-openssh
|
|||||||
AutoReqProv: no
|
AutoReqProv: no
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Apr 13 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
|
||||||
|
- fix script to recomment keys [SME: 12612]
|
||||||
|
now comments rsa, dsa, ecdsa,ed25519. dropped rsa1
|
||||||
|
|
||||||
* Fri Apr 12 2024 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-6.sme
|
* Fri Apr 12 2024 John Crisp <jcrisp@safeandsoundit.co.uk> 11.0.0-6.sme
|
||||||
- Remove option UsePrivilegeSeparation [SME: 12564]
|
- Remove option UsePrivilegeSeparation [SME: 12564]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user