我正在尝试将一个功能安装到 equinox OSGi 容器中。我通过 p2 director 命令行工具执行此操作:
java -jar ./plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -application org.eclipse.equinox.p2.director -no
splash -consoleLog -debug -repository <repositoryUrl> -installIU <featurename> -profile <profileName> -vmargs -Declipse.p2.unsignedPolicy=allow
但是安装失败并显示以下错误消息:
!MESSAGE One or more certificates rejected. Cannot proceed with installation.
这可能是因为该功能包含来自 bouncycastle 的已签名 jar,并且用于签署这些 jar 的证书被拒绝。
有人知道我该如何解决这个问题吗?
当我通过 GUI 安装工具安装该功能时,我没有问题,但在安装过程中我收到一个弹出窗口,询问我是否要信任证书链。如果我在此对话框中单击“是”,该功能将正确安装。
氪,
弗雷德里克。