public RelyingPartySpec EncryptionCertificateIdentifiedBy(string thumbprint, StoreName storeName = StoreName.My, StoreLocation storeLocation = StoreLocation.CurrentUser) { Guard.NotNullOrEmpty(() => thumbprint, thumbprint); var certificate = X509CertificateHelper.GetX509Certificate(thumbprint, storeName, storeLocation); this.encryptionCert = certificate.GetRawCertData(); return(this); }
public ServiceIdentityWithX509CertificateSpec EncryptionCertificateIdentifiedBy(string thumbprint, StoreName storeName = StoreName.My, StoreLocation storeLocation = StoreLocation.CurrentUser) { var certificate = X509CertificateHelper.GetX509Certificate(thumbprint, storeName, storeLocation); return(this.EncryptionCertificate(certificate)); }