'Declaration
Function ProtectOrUnprotectOwnCertificate( _ ByVal certificateSubId As String, _ ByVal newPrivateKeyPassword As String _ ) As Boolean
'Usage
Dim instance As _EasyUAClientServerApplication Dim certificateSubId As String Dim newPrivateKeyPassword As String Dim value As Boolean value = instance.ProtectOrUnprotectOwnCertificate(certificateSubId, newPrivateKeyPassword)
bool ProtectOrUnprotectOwnCertificate( string certificateSubId, string newPrivateKeyPassword )
bool ProtectOrUnprotectOwnCertificate( String^ certificateSubId, String^ newPrivateKeyPassword )
Parameters
- certificateSubId
- The sub-id of the certificate. Normally an empty string.
The value of this parameter can be
null
(Nothing
in Visual Basic). - newPrivateKeyPassword
- Empty string to unprotected the certificate, or a non-empty password to use for protection of the certificate's private key.
The value of this parameter can be
null
(Nothing
in Visual Basic).
Return Value
true
when the resulting state of the certificate is protected. Returns false
otherwise.