設定p2リポジトリ管理者に接続HTTPSリポジトリの試クライアント証明書のテンション
質問
思設定p2リポジトリ管理者に接続HTTPSリポジトリ(Apache+クライアント証明書).
はいくつか方法がありご利用負荷リポジトリ:
public IMetadataRepository loadRepository(URI location, IProgressMonitor monitor) throws ProvisionException, OperationCanceledException;
public IMetadataRepository loadRepository(URI location, int flags, IProgressMonitor monitor) throws ProvisionException, OperationCanceledException;
public IArtifactRepository loadRepository(URI location, IProgressMonitor monitor) throws ProvisionException;
public IArtifactRepository loadRepository(URI location, int flags, IProgressMonitor monitor) throws ProvisionException;
と location
パラメータをご提供できますURI HTTPSサーバーです。どのように提供していパスキー-店舗/信頼できる店舗を含むクライアントとCA証明書?りんの使用]"グローバル-キーパーソン-店舗のためのJavaプロセス。
解決
見つかります。p2用 ECF ニ層します。
の活性化のSSLサポート:
- イタ束(s):
org.eclipse.ecf.provider.filetransfer.httpclient.ssl
および/またはorg.eclipse.ecf.provider.filetransfer.ssl
をSSLSocketFactoryオブジェクトのキーストア)として登録OSGiサービス
SSLContext sslContext=SSLContext.getInstance("SSL");
sslContext.init(keymanagers,trustmanagers,null);
SSLSocketFactory工場=sslContext.getSocketFactory();
bundleContext.registerService(SSLSocketFactory.クラスです。getName(), 工場では、null);
他のヒント
「セキュアストレージランタイムオプション」ヘルプ章://href="http://help.eclipse.org/helios/index.jsp?topic=%2forg.eclipse.platform.doc.user%2Freference%2fref-secureStorage-options.htm "rel=" nofollow "> http://help.eclipse.org/helios/index.jsp?topic=%2forg.eclipse.platform.doc.user%2freference%2fref-secureStorage-Options。HTM
-eclipse.keyring <file path> (Equinox)
Set to override location of the default secure storage
.
おそらくあなたはこの値をプログラム的に設定することができます、ソースを調べてください。