設定p2リポジトリ管理者に接続HTTPSリポジトリの試クライアント証明書のテンション

StackOverflow https://stackoverflow.com//questions/10653145

  •  11-12-2019
  •  | 
  •  

質問

思設定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

...また http://help.eclipse.org/indigo/index.jsp?topic=%2forg.eclipse.platform.doc.isv%2freference%2fmisc%2fRuntime-options.html

-eclipse.keyring <file path> (Equinox)
    Set to override location of the default secure storage
.

おそらくあなたはこの値をプログラム的に設定することができます、ソースを調べてください。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top