免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2912 | 回复: 2

fpx为空密码 openssl pkcs12 怎么做成shell [复制链接]

论坛徽章:
0
发表于 2011-02-14 16:29 |显示全部楼层
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次回车,哪位大侠有良方解决,太感谢了!

论坛徽章:
0
发表于 2011-02-14 16:43 |显示全部楼层

论坛徽章:
0
发表于 2011-02-14 17:08 |显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP