version 1.571, 2023/04/26 14:28:09 |
version 1.572, 2023/10/01 20:15:23 |
|
|
local _isakmpd_pub=/etc/isakmpd/local.pub |
local _isakmpd_pub=/etc/isakmpd/local.pub |
local _iked_key=/etc/iked/private/local.key |
local _iked_key=/etc/iked/private/local.key |
local _iked_pub=/etc/iked/local.pub |
local _iked_pub=/etc/iked/local.pub |
|
local _ssh_pub=/etc/ssh/ssh_host_ed25519_key.pub _show_ssh_fp=false |
|
|
if [[ ! -f $_isakmpd_key ]]; then |
if [[ ! -f $_isakmpd_key ]]; then |
echo -n "openssl: generating isakmpd RSA keys... " |
echo -n "openssl: generating isakmpd RSA keys... " |
|
|
fi |
fi |
fi |
fi |
|
|
|
[[ -f $_ssh_pub ]] || _show_ssh_fp=true |
ssh-keygen -A |
ssh-keygen -A |
|
$_show_ssh_fp && ssh-keygen -lf $_ssh_pub | |
|
(read sz fp comm type && echo "sshd: $type $fp") |
|
|
if [[ ! -f /etc/soii.key ]]; then |
if [[ ! -f /etc/soii.key ]]; then |
openssl rand -hex 16 > /etc/soii.key && |
openssl rand -hex 16 > /etc/soii.key && |