/// <summary>
 /// Best way to uniquely find a certificate, be comparing thumbprints
 /// </summary>
 /// <param name="thumbprint"></param>
 /// <param name="store"></param>
 /// <returns></returns>
 public X509Certificate2 GetCertificateByThumbprint(string thumbprint, X509Store store = null)
 {
     return(GetCertificate(CertificateService.ThumbprintFilter(thumbprint), store));
 }
Example #2
0
 /// <summary>
 /// Best way to uniquely find a certificate, be comparing thumbprints
 /// </summary>
 /// <param name="thumbprint"></param>
 /// <param name="store"></param>
 /// <returns></returns>
 public X509Certificate2 GetCertificateByThumbprint(string thumbprint)
 {
     return(GetCertificate(CertificateService.ThumbprintFilter(thumbprint)));
 }
Example #3
0
 public CentralSslService(Options options, ILogService log, CertificateService certificateService)
 {
     _log                = log;
     _options            = options;
     _certificateService = certificateService;
 }
Example #4
0
 /// <summary>
 /// Legecy way to find a certificate, by looking for the friendly name.
 /// This should be removed for a v2.0.0 release
 /// </summary>
 /// <param name="friendlyName"></param>
 /// <param name="store"></param>
 /// <returns></returns>
 public X509Certificate2 GetCertificateByFriendlyName(string friendlyName)
 {
     return(GetCertificate(CertificateService.FriendlyNameFilter(friendlyName)));
 }
 /// <summary>
 /// Legecy way to find a certificate, by looking for the friendly name.
 /// This should be removed for a v2.0.0 release
 /// </summary>
 /// <param name="friendlyName"></param>
 /// <param name="store"></param>
 /// <returns></returns>
 public X509Certificate2 GetCertificateByFriendlyName(string friendlyName, X509Store store = null)
 {
     return(GetCertificate(CertificateService.FriendlyNameFilter(friendlyName), store));
 }