ICWMP: generate symlink for certificate on startup refs #15952

after the software is upgraded a new symlink needs to be created'
to the certificate that ICWMP uses for encrypted traffic
This commit is contained in:
ke hu 2019-05-09 11:29:33 +02:00 committed by Sukru Senli
parent b3755be235
commit 2cb1b84329

View file

@ -41,4 +41,14 @@ set_cwmp_reqopts() {
fi fi
} }
regenerate_ssl_link(){
local cert_dir="/etc/ssl/certs"
local all_file=$(ls $cert_dir/*.pem)
for cfile in $all_file
do
ln -s $cfile $cert_dir/$(openssl x509 -hash -noout -in $cfile).0
done
}
set_cwmp_reqopts set_cwmp_reqopts
regenerate_ssl_link