Skip to content

letsencrypt-domain-validation case sensitivity #294

@giggsey

Description

@giggsey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions