openssl java使用_用OpenSSL与JAVA(JSSE)通信

# re: 用OpenSSL与JAVA(JSSE)通信

2008-11-20 11:15 | llp20_2000

@我爱佳娃

我爱娃娃,按照上文,用OPENSSL的私钥 ./private/cakey.pem 为javatool的公钥签名请求"clientapp.crs"做签名的时候,也就是执行语句:

openssl ca -out clientapp.pem -config ./openssl.cnf -infiles clientapp.crs

结果如下:

**************************************************

[~~~~ CA]$ openssl ca -out clientapp.pem -config ./openssl.cnf -infiles clientapp.crs

Using configuration from ./openssl.cnf

Enter pass phrase for ./private/cakey.pem:

Check that the request matches the signature

Signature ok

The Subject's Distinguished Name is as follows

commonName :ASN.1 12:'liangleping'

organizationName :ASN.1 12:'HuaWei'

organizationalUnitName:ASN.1 12:'Develop'

localityName :ASN.1 12:'Cheng Du'

stateOrProvinceName :ASN.1 12:'Si Chuan'

countryName :ASN.1 12:'ch'

The countryName field needed to be the same in the

CA certificate (ch) and the request (ch)

************************************************

最后出现:The countryName field needed to be the same in the

回复  更多评论

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值