mkprovkeys.sh
来自「SIP(Session Initiation Protocol)是由IETF定义」· Shell 代码 · 共 35 行
SH
35 行
#! /bin/sh# this script generates keys and certificates for using secured# provisioning:VOCAL_ETC=/usr/local/vocal/etcHOSTNAME=`hostname`# generate the keyopenssl genrsa 512/1024 > ${VOCAL_ETC}/key.pem# now, create the mkreq.txt which has the right bitscat > /tmp/mkreq.$$ <<EOF[ req ] prompt=nodistinguished_name = req_distinguished_nameattributes=xyzcrl_days=365[ req_distinguished_name ]CN=${HOSTNAME}[ xyz ]EOF# now, generate the certificate requestopenssl req -config /tmp/mkreq.$$ -new -key ${VOCAL_ETC}/key.pem \ > ${VOCAL_ETC}/csr.pem# self-sign the certificate requestopenssl req -days 365 -x509 -key ${VOCAL_ETC}/key.pem \ -in ${VOCAL_ETC}/csr.pem \ > ${VOCAL_ETC}/cert.pemrm /tmp/mkreq.$$
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?