📄 testgen
字号:
#!/bin/shT=testcertKEY=512CA=../certs/testca.pem/bin/rm -f $T.1 $T.2 $T.keyif test "$OSTYPE" = msdosdjgpp; then PATH=../apps\;$PATH;else PATH=../apps:$PATH;fiexport PATHecho "generating certificate request"echo "string to make the random number generator think it has entropy" >> ./.rndif ../util/shlib_wrap.sh ../apps/openssl no-rsa; then req_new='-newkey dsa:../apps/dsa512.pem'else req_new='-new' echo "There should be a 2 sequences of .'s and some +'s." echo "There should not be more that at most 80 per line"fiecho "This could take some time."rm -f testkey.pem testreq.pem../util/shlib_wrap.sh ../apps/openssl req -config test.cnf $req_new -out testreq.pemif [ $? != 0 ]; thenecho problems creating requestexit 1fi../util/shlib_wrap.sh ../apps/openssl req -config test.cnf -verify -in testreq.pem -nooutif [ $? != 0 ]; thenecho signature on req is wrongexit 1fiexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -