protected KeyStore getKeyStore() {
		// init a new keystore with the Raven certificate,
		KeyStore keyStore;
		try {
			keyStore = KeyStore.getInstance("JKS");
			keyStore.load(null, new char[] {}); // Null InputStream, no password
			CertificateFactory factory = CertificateFactory
					.getInstance("X.509");
			Certificate cert = factory.generateCertificate(new FileInputStream(
					sCertRealPath));
			keyStore.setCertificateEntry(DEFAULT_KEYNAME, cert);
		} catch (KeyStoreException e) {
			log.error("Unable to setup KeyStore", e);
			throw new RuntimeException(e);
		} catch (NoSuchAlgorithmException e) {
			log.error("Unable to find crypto algorithm.", e);
			throw new RuntimeException(e);
		} catch (CertificateException e) {
			log.error("Unable to load certificate.", e);
			throw new RuntimeException(e);
		} catch (FileNotFoundException e) {
			log.error("Unable to load certificate file: " + sCertRealPath, e);
			throw new RuntimeException(e);
		} catch (IOException e) {
			log.error("General IO problem. Unable to initialised filter.", e);
			throw new RuntimeException(e);
		}

		return keyStore;

	}