public static final String keyStore2String(KeyStore keystore) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {
		final ByteArrayOutputStream baos = new ByteArrayOutputStream();
		keystore.store(baos, SslCertificateService.PASSPHRASE);
		final byte[] bytes = baos.toByteArray();
		baos.close();
		return Base64.getUrlEncoder().encodeToString(bytes);
	}
public static final String keyStore2String ( KeyStore keystore ) throws KeyStoreException , NoSuchAlgorithmException , CertificateException , IOException { final ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; keystore . store ( baos , SslCertificateService . PASSPHRASE ) ; final byte [ ] bytes = baos . toByteArray ( ) ; baos . close ( ) ; return Base64 . getUrlEncoder ( ) . encodeToString ( bytes ) ; }
@param keystore
@return
@throws KeyStoreException
@throws IOException
@throws CertificateException
@throws NoSuchAlgorithmException