Request failed - Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object.
Installed Version: 7.0.4.0 OS: Fedora Linux 42
Steps to replicate the error:
- Create a normal Managed Certificate
- Generate the Certificate
- Modify the configuration
- Save and renew the certificates
- The failure message console will show the following error
XX XX domains: Request failed - Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Certify.Providers.ACME.Anvil.AnvilACMEProvider.CompleteCertificateRequest(ILog log, ManagedCertificate managedCertificate, String orderId, String pwd, String preferredChain, String defaultKeyType, Boolean useModernPFXBuildAlgs, Boolean includeCommonName) in /home/runner/work/certify-internal/certify-internal/src/certify-build/certify/src/Certify.Providers/ACME/Anvil/AnvilACMEProvider.cs:line 1551 at Certify.Management.CertifyManager.CompleteCertificateRequest(ILog log, ManagedCertificate managedCertificate, IProgress`1 progress, PendingOrder pendingOrder) in /home/runner/work/certify-internal/certify-internal/src/certify-build/certify/src/Certify.Core/Management/CertifyManager/CertifyManager.CertificateRequest.cs:line 871 at Certify.Management.CertifyManager.PerformCoreCertificateRequest(ILog log, ManagedCertificate managedCertificate, IProgress`1 progress, CertificateRequestResult result, Boolean isInteractive, Boolean resumeExistingOrder) in /home/runner/work/certify-internal/certify-internal/src/certify-build/certify/src/Certify.Core/Management/CertifyManager/CertifyManager.CertificateRequest.cs:line 618 at Certify.Management.CertifyManager.PerformCertificateRequest(ILog log, ManagedCertificate managedCertificate, IProgress`1 progress, Boolean resumePaused, Boolean skipRequest, Boolean failOnSkip, Boolean skipTasks, Boolean isInteractive, String reason) in /home/runner/work/certify-internal/certify-internal/src/certify-build/certify/src/Certify.Core/Management/CertifyManager/CertifyManager.CertificateRequest.cs:line 262
Thanks is this in the Management Hub or in an Agent instance?
It looks like this is probably an issue related to trying to set the CommonName on the certificate signing request, which is usually the selected Primary Domain. We will be removing Common Name from CSR by default in future versions.
@webprofusion-chrisc in Management Hub
Thanks, and is there anything special about the configuration such as using a custom CSR etc? I assume under Certificate - Identifiers a set of domains is selected for inclusion and one is set to be primary.
@webprofusion-chrisc yes, i using a wildcard domain as primary, and two other subdomains as secondary