pem-keystore
pem-keystore copied to clipboard
Support store type probing to help auto-detecting the store type
trafficstars
The KeyStore class provides a getInstance(...) variant that tries to detect the store type and loads the store with a matching provider:
KeyStore.getInstance(storeFile, storePassword);
This way, we could use stores of different types interchangeably without having to configure the store type.
This doesn't currently work for PEM key stores. What do you think about adding this feature? Looks like you would have to override KeyStoreSpi.engineProbe(InputStream) to support this. Thanks!
Kind of like a "meta" provider? That sounds like a great idea. PRs welcome :grin: