Default |
public void Import( X509Certificate certificate, bool trusted, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | certificate is . |
| OperationCanceledException | The operation was canceled via the cancellation token. |
Imports the certificate.
If the certificate already exists in the database and trusted is , then the IsTrusted state is updated otherwise the certificate is added to the database with the specified trust.