Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
40OIL opened this issue Jun 10, 2022 · 0 comments

Comments

@40OIL
Copy link

40OIL commented Jun 10, 2022

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.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


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant