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