I have a problem with certificate creation.
I'm trying to get my own TLS certificate via NET 8.0 and Certes library.
You can check my ACME manager code here: SignEdgeService/SignEdgeService/ACMEService.cs at main · HappyHakunaMatata/SignEdgeService · GitHub
So I validated my domain using dns challenge. Everything is working (Let's Debug)
Http challenge doesn't work for me. My web is unreachable for http validation for no reason.
I have tried to create token and *txt file and It was reachable by this link http://peer.littlemozzarella.com/.well-known/acme-challenge/some_cool_token_here_1, and I can download .txt file.
I have to use HTTP protocol, right ? not HTTPS or FTP ? More other you can see that http:// is reachable.
When I tried to download certificate the first exception was:
Certes.AcmeException: Can not find issuer 'C=US,O=(STAGING) Internet Security Research Group,CN=(STAGING) Pretend Pear X1' for certificate 'C=US,O=(STAGING) Internet Security Research Group,CN=(STAGING) Bogus Broccoli X2'.
at Certes.Pkcs.CertificateStore.GetIssuers(Byte der)
at Certes.CertificateChainExtensions.ToPem(CertificateChain certificateChain, IKey certKey)
at SignEdgeService.ACMEService.DownloadCertificate() in /src/SignEdgeService/ACMEService.cs:line 515
Can not find issuer 'C=US,O=(STAGING) Internet Security Research Group,CN=(STAGING) Pretend Pear X1' for certificate 'C=US,O=(STAGING) Internet Security Research Group,CN=(STAGING) Bogus Broccoli X2'.
The second one I got:
Certes.AcmeException: Can not finalize order with status 'Valid'.
at Certes.IOrderContextExtensions.Generate(IOrderContext context, CsrInfo csr, IKey key, String preferredChain, Int32 retryCount)
at SignEdgeService.ACMEService.DownloadCertificate() in /Users/user/Projects/SignEdgeService/SignEdgeService/ACMEService.cs:line 451
Can not finalize order with status 'Valid'. Actually I got this exception before.
My domain is: littlemozzarella.com
I ran this command: DownloadCertificate function
My web server is (include version): Kerstel
The operating system my web server runs on is (include version): AWS ubuntu-jammy-22.04
My hosting provider, if applicable, is: AWS, Godaddy
I can login to a root shell on my machine (yes or no, or I don't know): yes
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): Certes 3.0.4