private static async Task <Order> NewOrderAsync(ACMEClient acmeClient, IEnumerable <OrderIdentifier> domains) { try { Order result = await acmeClient.OrderAsync(domains); return(result); } catch (ACMEException ex) { Console.WriteLine(ex.Descriptor); Console.WriteLine(ex.Message); } catch (Exception ex) { Console.WriteLine(ex.GetType()); Console.WriteLine(ex.Message); } return(null); }
private static async Task <Order> NewOrderAsync(ACMEClient acmeClient, IEnumerable <OrderIdentifier> domains) { Order result = await acmeClient.OrderAsync(domains); return(result); }