]> git.pld-linux.org Git - packages/openssh.git/commitdiff
generate RSA key, too
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 28 May 2001 19:44:23 +0000 (19:44 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openssh.spec -> 1.80

openssh.spec

index 2fa56b3b03c0bde3f162b01a9768ab53b559dd72..933e840c137c068d03c211dd5ab3886231be2a64 100644 (file)
@@ -217,11 +217,16 @@ rm -rf $RPM_BUILD_ROOT
 %post server
 /sbin/chkconfig --add sshd
 if [ ! -f %{_sysconfdir}/ssh_host_key -o ! -s %{_sysconfdir}/ssh_host_key ]; then
-       %{_bindir}/ssh-keygen -b 1024 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
+       %{_bindir}/ssh-keygen -t rsa1 -f %{_sysconfdir}/ssh_host_key -N '' 1>&2
        chmod 600 %{_sysconfdir}/ssh_host_key
 fi
+if [ ! -f %{_sysconfdir}/ssh_host_rsa_key -o ! -s %{_sysconfdir}/ssh_host_rsa_key ]; then
+        %{_bindir}/ssh-keygen -t rsa -f %{_sysconfdir}/ssh_host_rsa_key -N '' 1>&2
+       chmod 600 %{_sysconfdir}/ssh_host_rsa_key
+fi
+
 if [ ! -f %{_sysconfdir}/ssh_host_dsa_key -o ! -s %{_sysconfdir}/ssh_host_dsa_key ]; then
-        %{_bindir}/ssh-keygen -d -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
+        %{_bindir}/ssh-keygen -t dsa -f %{_sysconfdir}/ssh_host_dsa_key -N '' 1>&2
        chmod 600 %{_sysconfdir}/ssh_host_dsa_key
 fi
 if [ -f /var/lock/subsys/sshd ]; then
This page took 0.290962 seconds and 4 git commands to generate.