Default |
public Task ImportAsync( X509Certificate certificate, bool trusted, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | certificate is null. |
OperationCanceledException | The operation was canceled via the cancellation token. |
Asynchronously 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.