package o; import java.io.IOException; import java.security.cert.CertificateEncodingException; import java.security.cert.X509Certificate; /* loaded from: classes6.dex */ public final class gqO { public static gqV d(X509Certificate x509Certificate) throws CertificateEncodingException { try { return new gqV(C15446gqo.d(C15440gqi.c(AbstractC15315gnE.b(x509Certificate.getTBSCertificate())).g)); } catch (IOException e) { throw new CertificateEncodingException(e.toString()); } } public static gqV b(X509Certificate x509Certificate) throws CertificateEncodingException { try { return new gqV(C15446gqo.d(C15440gqi.c(AbstractC15315gnE.b(x509Certificate.getTBSCertificate())).f)); } catch (IOException e) { throw new CertificateEncodingException(e.toString()); } } }