📄 testca
字号:
#!/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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -