public X509CertificateWithKey getCurrentCertificateWithKey() {
        X509ExtendedKeyManager manager = mutableX509KeyManager.currentManager();
        X509Certificate[] certificateChain = manager.getCertificateChain(CERTIFICATE_ALIAS);
        PrivateKey privateKey = manager.getPrivateKey(CERTIFICATE_ALIAS);
        return new X509CertificateWithKey(List.of(certificateChain), privateKey);
    }
A {@link X509ExtendedKeyManager} that reloads the certificate and private key from file regularly.

@author bjorncs
security-utils/src/main/java/com/yahoo/security/AutoReloadingX509KeyManager.java