📄 dist_certs
字号:
#!/bin/sh# copy the certificates to the right baseconfig dirs.source ../../umlsetup.sh# first, move the private keys to the right placefor host in $FREESWANHOSTSdo if [ -f $host.uml.freeswan.org/$host.uml.freeswan.org.key ] then mkdir -p ../baseconfigs/$host/etc/ipsec.d/private cp $host.uml.freeswan.org/$host.uml.freeswan.org.key ../baseconfigs/$host/etc/ipsec.d/private/$host.pem fidonemkdir -p ../baseconfigs/all/etc/ipsec.d/certs# now, copy all certificates to "all" directory.for host in $FREESWANHOSTSdo if [ -f $host.uml.freeswan.org/$host.uml.freeswan.org.key ] then cp $host.uml.freeswan.org/$host.uml.freeswan.org.cert ../baseconfigs/all/etc/ipsec.d/certs fidone# copy the caCert to the right placecp cacert.pem ../baseconfigs/all/etc/ipsec.d/cacerts/caCert.pem# copy the crl to the right placecp crls/nic.crl ../baseconfigs/all/etc/ipsec.d/crls/nic.crl
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -