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 ) ; }
Convenience method for the most common case of certificate duplication .