java - How to create an SSLEngine with all the same public keys/certs from chrome, firefox or any browser? -


is there anyway create sslengine using certs installed chrome? remember default has quite few authority public certs installed.

i think, since chrome works websites know of, bit more exhaustive , it's easier install chrome , rely on that.

thanks, dean

from gather each browser uses it's own certificate storage. there 3 solutions: 1 static, 1 dynamic , 1 "good enough". here go:

  1. static solution - read documentation, find out how read certificates (or whole chains) browsers' storage, export them hand , import them java's cacerts storage or custom one.

  2. dynamic solution - same thing above, during application startup.

  3. lazy good-enough solution - nothing , hope certificates in cacerts jks identical in browser, chrome, firefox, opera or ie.

but note following: https://bugzilla.mozilla.org/show_bug.cgi?id=1265113 seems on windows chrome reads certificates windows' certificates store, in reality application should read system certificate store , use it: on linux there /usr/share/ca-certificates , start windows try: https://superuser.com/questions/411909/where-is-the-certificate-folder-in-windows-7

unfortunately seems implementation pretty convoluted - hey!, makes pretty open source project :)


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo