runliuv

runliuv@cnblogs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

读取国密证书报错:Resolve the certificate exception: parsing issue: malformed PEM data: no header found

x509证书,der编码,base64编码 。

 

JAVA在读取 .cer 编码时,直接报错:Resolve the certificate exception: parsing issue: malformed PEM data: no header found

原因:给错了.cer  证书。

正常的 .cer  证书(der编码的)约1KB左右大小。异常的证书是5KB的。换另一个1KB的就正常读取了。 

 

 

posted on 2025-04-23 17:41  runliuv  阅读(7)  评论(0)    收藏  举报