Files
provision_sccp/etc/certs/encrypt
Diederik de Groot efe0307a1d Update rewrite ruls to handled encrypted and signed files
Add certutils from usecallmanager.nz
Add etc/certs directory
2018-11-25 21:14:09 +01:00

7 lines
258 B
Bash
Executable File

#!/bin/bash
if [ $# -gt 0 ]; then
# Encrypt SEPMAC.cnf.xml
openssl enc -aes-256-cbc -salt -in ../../tftpboot/settings/${1} -out ../../tftpboot/settings/${1}.enc -k tftp.pem
../../tools/certutils/sgnfile -b ../../tftpboot/settings/${1}.enc -c tftp.pem
fi