code: public static X509Certificate mitmDuplicateCertificate(final X509Certificate originalCert,
  			final PublicKey newPubKey,
  			final X509Certificate caCert,
  			final PrivateKey caPrivateKey)
  	throws CertificateParsingException, SignatureException, InvalidKeyException, CertificateExpiredException, CertificateNotYetValidException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException
  	{
  		return mitmDuplicateCertificate(originalCert, newPubKey, caCert, caPrivateKey, clientCertDefaultOidsNotToCopy);
  	}
docs: Convenience method for the most common case of certificate duplication.
  
  This method will not add any custom extensions and won't copy the extensions 2.5.29.8 : Issuer Alternative Name,
  2.5.29.18 : Issuer Alternative Name 2, 2.5.29.31 : CRL Distribution Point or 1.3.6.1.5.5.7.1.1 : Authority Info Access, if they are present.
  
  @param originalCert
  @param newPubKey
  @param caCert
  @param caPrivateKey
  @return
  @throws CertificateParsingException
  @throws SignatureException
  @throws InvalidKeyException
  @throws CertificateExpiredException
  @throws CertificateNotYetValidException
  @throws CertificateException
  @throws NoSuchAlgorithmException
  @throws NoSuchProviderException