public static X509Certificate2 ReadCertificate(ILoggerFactory loggerFactory)
        {
            var certificateReader = new CertificateReader(loggerFactory);

            return(certificateReader.ReadCertificatePrivate());
        }
        public static X509Certificate2 ReadCertificate()
        {
            var certificateReader = new CertificateReader(new NullLoggerFactory());

            return(certificateReader.ReadCertificatePrivate());
        }