version 1.320, 2008/11/27 00:52:06 |
version 1.321, 2008/12/11 15:44:00 |
|
|
|
|
if [ ! -f /etc/isakmpd/private/local.key ]; then |
if [ ! -f /etc/isakmpd/private/local.key ]; then |
echo -n "openssl: generating new isakmpd RSA key... " |
echo -n "openssl: generating new isakmpd RSA key... " |
if /usr/sbin/openssl genrsa -out /etc/isakmpd/private/local.key 1024 \ |
if /usr/sbin/openssl genrsa -out /etc/isakmpd/private/local.key 2048 \ |
> /dev/null 2>&1; then |
> /dev/null 2>&1; then |
chmod 600 /etc/isakmpd/private/local.key |
chmod 600 /etc/isakmpd/private/local.key |
openssl rsa -out /etc/isakmpd/local.pub \ |
openssl rsa -out /etc/isakmpd/local.pub \ |