public static CertificateFactory getCertificateFactory() {
        return FunctionUtils.doUnchecked(() -> CertificateFactory.getInstance(X509_CERTIFICATE_TYPE));
    }
Gets a certificate factory for creating X.509 artifacts.

@return X509 certificate factory.
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/crypto/CertUtils.java