无法为 com.adobe.adept.client.XMLUtil 的受信任 CA 设置证书
Posted
技术标签:
【中文标题】无法为 com.adobe.adept.client.XMLUtil 的受信任 CA 设置证书【英文标题】:Cannot set up certs for trusted CAs for com.adobe.adept.client.XMLUtil 【发布时间】:2012-05-07 09:22:28 【问题描述】:我有下一个例外::
Exception in thread "main" java.lang.ExceptionInInitializerError
at javax.crypto.Mac.getInstance(DashoA13*..)
at com.adobe.adept.client.XMLUtil.createHMAC(XMLUtil.java:815)
at com.adobe.adept.client.XMLUtil.hmac(XMLUtil.java:788)
at com.adobe.adept.upload.UploadTest.makeContent(UploadTest.java:1454)
at com.adobe.adept.upload.UploadTest.<init>(UploadTest.java:1769)
at com.adobe.adept.upload.UploadTest.main(UploadTest.java:1806) Caused
by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.<clinit>(DashoA13*..)
... 6 more Caused by: java.lang.SecurityException: Cannot locate policy or framework files!
at javax.crypto.SunJCE_b.i(DashoA13*..)
at javax.crypto.SunJCE_b.g(DashoA13*..)
at javax.crypto.SunJCE_b$1.run(DashoA13*..)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
它正在在线发生:
Mac mac = Mac.getInstance("HmacSHA1");
我尝试了下一个解决方案: - NoSuchAlgorithmException: Algorithm HmacSHA1 not available - 我的本地 java.security 文件的实际状态 - https://forums.oracle.com/forums/thread.jspa?threadID=316839
可能有人有其他想法?
【问题讨论】:
【参考方案1】:已修复。问题出在我的代码中,我无法使用:
System.setProperties(props);
props - 配置文件的属性
【讨论】:
以上是关于无法为 com.adobe.adept.client.XMLUtil 的受信任 CA 设置证书的主要内容,如果未能解决你的问题,请参考以下文章
C# 无法将类型为“System.Byte[]”的对象强制转换为类型“System.Data.DataTable
无法将类型为“System.Collections.Generic.List`1[EPMS.Domain.SingleItem]”的对象强制转换为类型“EPMS
无法将 createdAt 和 updatedAt 保存为日期时间值,也无法将后端保存为前端