testca

来自「mediastreamer2是开源的网络传输媒体流的库」· 代码 · 共 52 行

TXT
52
字号
#!/bin/shSH="/bin/sh"if test "$OSTYPE" = msdosdjgpp; then    PATH="../apps\;$PATH"else    PATH="../apps:$PATH"fiexport SH PATHSSLEAY_CONFIG="-config CAss.cnf"export SSLEAY_CONFIGOPENSSL="`pwd`/../util/opensslwrap.sh"export OPENSSL/bin/rm -fr demoCA$SH ../apps/CA.sh -newca <<EOFEOFif [ $? != 0 ]; then	exit 1;fiSSLEAY_CONFIG="-config Uss.cnf"export SSLEAY_CONFIG$SH ../apps/CA.sh -newreqif [ $? != 0 ]; then	exit 1;fiSSLEAY_CONFIG="-config ../apps/openssl.cnf"export SSLEAY_CONFIG$SH ../apps/CA.sh -sign  <<EOFyyEOFif [ $? != 0 ]; then	exit 1;fi$SH ../apps/CA.sh -verify newcert.pemif [ $? != 0 ]; then	exit 1;fi/bin/rm -fr demoCA newcert.pem newreq.pem#usage: CA -newcert|-newreq|-newca|-sign|-verify

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?