code: public synchronized PrivateKey getPrivateKeyForLocalCert(final X509Certificate cert)
  	throws CertificateEncodingException, KeyStoreException, UnrecoverableKeyException,
  	NoSuchAlgorithmException
  	{
  		String thumbprint = ThumbprintUtil.getThumbprint(cert);
  
  		return (PrivateKey)_ks.getKey(thumbprint, _keypassword);
  	}
docs: For a cert we have generated, return the private key.
  @param cert
  @return
  @throws CertificateEncodingException
  @throws KeyStoreException
  @throws UnrecoverableKeyException
  @throws NoSuchAlgorithmException