mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
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:
parent
b3755be235
commit
2cb1b84329
1 changed files with 10 additions and 0 deletions
|
|
@ -41,4 +41,14 @@ set_cwmp_reqopts() {
|
|||
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
|
||||
regenerate_ssl_link
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue