Exemple #1
0
 /// <summary>
 /// Find most recent certificate with the given name
 /// from certificate store.
 /// </summary>
 /// <param name="store"></param>
 /// <param name="certificateName">Name of certificate
 /// </param>
 /// <param name="ct">CancellationToken</param>
 /// <returns></returns>
 public static async Task <Certificate> FindLatestCertificateAsync(
     this ICertificateStore store, string certificateName,
     CancellationToken ct = default)
 {
     try {
         return(await store.GetLatestCertificateAsync(certificateName, ct));
     }
     catch (ResourceNotFoundException) {
         return(null);
     }
 }