Skip to content

Caddy attempts to manage SSL certificate when auto_https is set to disable_certs #6148

@drakon64

Description

@drakon64

I have the following Caddyfile:

{
  admin unix//var/run/caddy/caddy-admin.sock

  auto_https disable_certs

  servers {
    metrics
  }
}

:2019 {
  metrics
}

subdomain.example1.com *.example2.com :443 {
  root * /opt/app/public
  php_fastcgi unix//var/run/php-fpm/default.sock
  file_server

  tls /etc/pki/tls/certs/example1.crt /etc/pki/tls/private/example1.key {
    ciphers TLS_AES_256_GCM_SHA384 TLS_AES_128_GCM_SHA256 TLS_CHACHA20_POLY1305_SHA256 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  }

  tls /etc/pki/tls/certs/example2.crt /etc/pki/tls/private/example2.key {
    ciphers TLS_AES_256_GCM_SHA384 TLS_AES_128_GCM_SHA256 TLS_CHACHA20_POLY1305_SHA256 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
  }

  encode zstd gzip
}

The two tls blocks provide an SSL certificate for subdomain.example1.com and *.example2.com.

Despite SSL certificates already being provided and auto_https being set to disable_certs, Caddy still attempts to provide replacement SSL certificates via ACME. Setting auto_https to off resolves this but disables other functionality we require.

Is this a bug or is something wrong in our config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions