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

letsencrypt-domain-validation case sensitivity #294

Open
giggsey opened this issue Aug 4, 2022 · 0 comments
Open

letsencrypt-domain-validation case sensitivity #294

giggsey opened this issue Aug 4, 2022 · 0 comments

Comments

@giggsey
Copy link

giggsey commented Aug 4, 2022

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.25
  • Ruby: 2.5.9
  • Distribution: CentOS 7 + AlmaLinux 9
  • Module version: 8.0.2

How to reproduce (e.g Puppet code you use)

$::fqdn = 'TEST-BOX-1.example.com'

letsencrypt::certonly { 'example':
    domains              => [$::fqdn, 'mydomain.example.com'],
}

What are you seeing

The certificate gets created with test-box-1.example.com,mydomain.example.com.

But when the letsencrypt-domain-validation script runs as part of the unless:

Debug: Exec[letsencrypt certonly postfix](provider=shell): Executing check '["/bin/sh", "-c", "/usr/local/sbin/letsencrypt-domain-validation /etc/letsencrypt/live/example/cert.pem 'TEST-BOX-1.example.com' 'mydomain.example.com'"]'

This fails because the domains in the certificate do not match the input (due to case sensitivity)

What behaviour did you expect instead

The script should convert input to lowercase

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