Skip to content

Instantly share code, notes, and snippets.

@luismoramedina
Created May 25, 2015 15:30
Show Gist options
  • Save luismoramedina/eae687fb60518e3025ad to your computer and use it in GitHub Desktop.
Save luismoramedina/eae687fb60518e3025ad to your computer and use it in GitHub Desktop.
KeystoreLoader
FileInputStream fileInputStream = new FileInputStream("c:\\data\\Temp\\bugs\\segfat\\DummyServerTrustFile.jks");
KeyStore jks = KeyStore.getInstance("JKS");
// jks.load(fileInputStream, "".toCharArray());
jks.load(fileInputStream, null);
Enumeration<String> aliases = jks.aliases();
System.out.println("aliases.toString() = " + aliases.nextElement());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment