开发者

Use jsafeJCEFIPS.jar OSGi

开发者 https://www.devze.com 2023-04-01 07:11 出处:网络
Has anyone tried using jsafeJCEFIPS.jar OSGi? The jar is signed, I can\'t convert it to a bundle. I tried to embedded as jar in bundle, but it is always throws

Has anyone tried using jsafeJCEFIPS.jar OSGi? The jar is signed, I can't convert it to a bundle. I tried to embedded as jar in bundle, but it is always throws java.lang.SecurityException: "JsafeJCE provider is disabled, a FIPS 140 required self-integrity check failed" when I try to create a instance of JsafeJCE object.

It looks JsafeJCE can't check itself integrity(signature etc.)successfully. I 开发者_如何学JAVAprint out jsafeJCE.class.getProtectionDomain, it is (inputstream:bundle-name.jar ).

Any idea how to get jsafeJCE works in OSGi, I'm using Apache Felix.

Thanks in advance!


An ugly workaround is to add RSA jars in system class path and expose these packages thru org.osgi.framework.bootdelegation

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号