File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,17 @@ public string CertPath
98
98
set { m_certPath = value ; }
99
99
}
100
100
101
+ private string m_certPass ;
102
+
103
+ ///<summary>Retrieve or set the path to client certificate.
104
+ ///</summary>
105
+ public string CertPassphrase
106
+ {
107
+ get { return m_certPass ; }
108
+ set { m_certPass = value ; }
109
+ }
110
+
111
+
101
112
///<summary>Convenience read-only property to retrieve an X509CertificateCollection
102
113
///containing the client certificate</summary>
103
114
public X509CertificateCollection Certs
@@ -107,7 +118,7 @@ public X509CertificateCollection Certs
107
118
return null ;
108
119
} else {
109
120
X509CertificateCollection c = new X509CertificateCollection ( ) ;
110
- c . Add ( new X509Certificate2 ( m_certPath ) ) ;
121
+ c . Add ( new X509Certificate2 ( m_certPath , m_certPass ) ) ;
111
122
return c ;
112
123
}
113
124
}
You can’t perform that action at this time.
0 commit comments