Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [geclipse-dev] CA certificate loading

Hi Romain,

Have a look at the add-Certificate functionality of the SecurityPreferencePage, i.e. eu.geclipse.ui.internal.preference.SecurityPreferencePage#openAddDialog() resp. eu.geclipse.ui.internal.preference.SecurityPreferencePage#addCertificates(...).

In short:

X509Certificate cert = X509Util.loadCertificate( inputStream );
Security.getCertificateManager().addCertificate( cert, CertTrust.AlwaysTrusted );

Where X509Util.loadCertificate can handle PEM and DER encoded certificates by default. CertTrust.AlwaysTrusted ensures that your added certificate will be stored permanently in the g-Eclipse config area.

Hope that helps,

Mathias



-----Original Message-----
From: geclipse-dev-bounces@xxxxxxxxxxx on behalf of Romain
Sent: Fri 12/5/2008 2:14 PM
To: geclipse-dev@xxxxxxxxxxx
Subject: [geclipse-dev] CA certificate loading
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

is there still a way to load CA certificates from files in a directory on the local filesystem?

I need it because I have potentially several thousand of g-eclipse instances each
needing to load the CA certificates and I don't want to overload the http servers.

cheers,
Rom.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk5KSEACgkQbUN+hKKXqgttkgCgkMcoZJ4SA1u0k/sextjxAFo2
uAoAoMw/cAKrLpfuwraEXRBNPtjmjP0W
=zU0T
-----END PGP SIGNATURE-----
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev



Back to the top