+ -
当前位置:首页 → 问答吧 → fpx为空密码 openssl pkcs12 怎么做成shell

fpx为空密码 openssl pkcs12 怎么做成shell

时间:2011-02-14

来源:互联网

shell如下:

#!/bin/sh
if [ $# -lt 1 ]
then
echo "please input password"
exit 1
fi

echo $1

$1=NULL

for name in `ls`
do
        openssl pkcs12  -in $name -out  ${name:0:${#name}-4}.pem -nodes -password 0

done

我的pfx为空密码,我想做成一个shell,直接输空密码的,但是  openssl pkcs12  -in $name -out  ${name:0:${#name}-4}.pem -nodes -password 0必须要指定密码,不输的话就要打N次回车,哪位大侠有良方解决,太感谢了!

作者: littleline   发布时间: 2011-02-14

作者: littleline   发布时间: 2011-02-14

:sleepy:

作者: littleline   发布时间: 2011-02-14

热门下载

更多