dist_certs
来自「This a good VPN source」· 代码 · 共 33 行
TXT
33 行
#!/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 + =
减小字号Ctrl + -
显示快捷键?