sjkp / letsencrypt-azure

The easiest way to use lets encrypt certificates on Azure
111 stars 35 forks source link

Null error when generating cert #27

Open houstonhaynes opened 3 years ago

houstonhaynes commented 3 years ago

So this process sort of worked. Everything in the template ran but the cert itself didn't generate. So I went to the Function App script to Run+Test and ran RequestWildcardCertificate manually. In the terminal it actually ran without error. However, in the HTTP response content window the following message popped up.

System.NullReferenceException: Object reference not set to an instance of an object. at LetsEncrypt.Azure.Core.V2.AzureWebAppService.Install(ICertificateInstallModel model) in D:\a\1\s\src\LetsEncrypt.Azure.Core.V2\AzureWebAppService.cs:line 44 at LetsEncrypt.Azure.Core.V2.LetsencryptService.Run(AcmeDnsRequest acmeDnsRequest, Int32 renewXNumberOfDaysBeforeExpiration) in D:\a\1\s\src\LetsEncrypt.Azure.Core.V2\LetsencryptService.cs:line 48 at LetsEncrypt.Azure.FunctionV2.Helper.InstallOrRenewCertificate(ILogger log) in D:\a\1\s\examples\LetsEncrypt.Azure.FunctionV2\Helper.cs:line 54 at LetsEncrypt.Azure.FunctionV2.RequestWildcardCertificate.Run(HttpRequest req, ILogger log) in D:\a\1\s\examples\LetsEncrypt.Azure.FunctionV2\RequestWildcardCertificate.cs:line 29

The certificate was generated after the manual run, and everything seems to be in order. So I'm not precisely sure to make of this. And similarly I'm not sure what to expect when the certificate is renewed. I'm still rooting around in the generated code but thought it worth mentioning here. Thanks!