Describe the bug
Version: LettuceEncrypt 1.1.0-beta.60
Per RFC8555 § 7.1.1 the TOS URL is not required by the ACME protocol, and is an optional metadata field. See also here.
If an ACME implementation does not support TOS, an exception gets thrown when trying to run an app targeting that ACME server, due to missing TOS URL. Stack trace below:
Failed to automatically create a certificate for {MY URL}
System.NullReferenceException: Object reference not set to an instance of an object.
at Certes.IAcmeContextExtensions.TermsOfService(IAcmeContext context)
at LettuceEncrypt.Internal.AcmeClient.GetTermsOfServiceAsync()
at LettuceEncrypt.Internal.AcmeCertificateFactory.CreateAccount(CancellationToken cancellationToken)
at LettuceEncrypt.Internal.AcmeCertificateFactory.GetOrCreateAccountAsync(CancellationToken cancellationToken)
at LettuceEncrypt.Internal.AcmeStates.BeginCertificateCreationState.MoveNextAsync(CancellationToken cancellationToken
Describe the bug Version: LettuceEncrypt 1.1.0-beta.60
Per RFC8555 § 7.1.1 the TOS URL is not required by the ACME protocol, and is an optional metadata field. See also here.
If an ACME implementation does not support TOS, an exception gets thrown when trying to run an app targeting that ACME server, due to missing TOS URL. Stack trace below:
Failed to automatically create a certificate for {MY URL} System.NullReferenceException: Object reference not set to an instance of an object. at Certes.IAcmeContextExtensions.TermsOfService(IAcmeContext context) at LettuceEncrypt.Internal.AcmeClient.GetTermsOfServiceAsync() at LettuceEncrypt.Internal.AcmeCertificateFactory.CreateAccount(CancellationToken cancellationToken) at LettuceEncrypt.Internal.AcmeCertificateFactory.GetOrCreateAccountAsync(CancellationToken cancellationToken) at LettuceEncrypt.Internal.AcmeStates.BeginCertificateCreationState.MoveNextAsync(CancellationToken cancellationToken
To Reproduce Steps to reproduce the behavior:
Expected behavior Client certificate should be issued without TOS available.
Additional Info Included my Startup.cs.txt file. This implementation expects the step-ca URI in the appsettings.json "CAUri" setting.