WinCertes icon indicating copy to clipboard operation
WinCertes copied to clipboard

Could not bind certificate to site Default Web Site: Object reference not set to an instance of an object.

Open 40OIL opened this issue 2 years ago • 0 comments

WinCertes do not install certs from letsencrypt

Microsoft Windows Server 2008 R2 Enterprise x64 [Version 6.1.7601] IIS 7 IE 11.0.9600.20120 update 11.0.255 WinCertes 1.4.4

I ran line WinCertes.exe -e <my_mail> -d <my_domain> -w=c:\inetpub\wwwroot -b "Default Web Site" from admin console

error log:


2022-06-10 10:18:06.3158|INFO|Successfully registered account <my_mail> with certificate authority https://acme-v02.api.letsencrypt.org/directory 2022-06-10 10:18:06.3939|INFO|Please check the ACME Service ToS at: https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf 2022-06-10 10:18:12.7846|INFO|Generated orders and validated challenges for domains: <my_domain> 2022-06-10 10:18:18.0346|INFO|Retrieved certificate from the CA. The certificate is in C:\ProgramData\WinCertes\CertsTmp\aba709c4-279f-4766-bdc5-2c65118b5118.pfx 2022-06-10 10:18:18.1752|INFO|Stored certificate with DN CN=<my_domain> into Windows Personal Local Machine store 2022-06-10 10:18:18.3471|ERROR|Could not bind certificate to site Default Web Site: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at WinCertes.Utils.<>c.<ParseSubjectAlternativeName>b__3_0(X509Extension n) at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) at WinCertes.Utils.ParseSubjectAlternativeName(X509Certificate2 cert) at WinCertes.Utils.BindCertificateForIISSite(X509Certificate2 certificate, String siteName, Int32 port) 2022-06-10 10:18:18.4877|INFO|Removed files from filesystem: C:\ProgramData\WinCertes\CertsTmp\aba709c4-279f-4766-bdc5-2c65118b5118.pfx, C:\ProgramData\WinCertes\CertsTmp\aba709c4-279f-4766-bdc5-2c65118b5118.cer, C:\ProgramData\WinCertes\CertsTmp\aba709c4-279f-4766-bdc5-2c65118b5118.key


40OIL avatar Jun 10 '22 07:06 40OIL