Skip to content

not able to get a certificate #28

@patrickdk77

Description

@patrickdk77

Bug Overview

I only receive this in the logs with debug enabled:
2025/08/14 00:28:49 [info] 21#21: update failed for acme issuer "letsencrypt": expected value at line 1 column 1

the config is:

acme_issuer letsencrypt {
uri https://acme-v02.api.letsencrypt.org/;
state_path /etc/nginx/acme;
accept_terms_of_service;
ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
ssl_verify on;
}
server {
server_name stats.patrickdk.com;
listen 80 ;
listen [::]:80 ;
listen 443 ssl ;
listen [::]:443 ssl ;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
ssl_certificate_cache max=2;
acme_certificate letsencrypt key=rsa;
ssl_certificate $acme_certificate;
ssl_certificate_key $acme_certificate_key;
include /etc/nginx/vhost.d/stats.patrickdk.com;
location / {
proxy_pass http://stats.patrickdk.com;
include /etc/nginx/vhost.d/default_location;
}
}

Expected Behavior

issue a certificate or issue a comprehensible error

Steps to Reproduce the Bug

posted above

Environment Details

  • Target deployment platform: [e.g. AWS/GCP/local cluster/etc...]
  • Target OS: [e.g. RHEL 9/Ubuntu 24.04/etc...]
  • Version of this project or specific commit: [e.g. 1.4.3/commit hash]
  • Version of any relevant project languages: [e.g. Kubernetes 1.30/Python 3.9.7/etc...]

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions