Bugfix if java 8 is used and the KeyStore class is not found (plus a lit...

...tle refactoring to the SSLKeyStore).