Skip to content

[step-ca] Internal Server Error using ACMEΒ #14810

Description

@Phenix66

βœ… Have you read and understood the above guidelines?

yes

πŸ”Ž Did you run the script with verbose mode enabled?

Yes, verbose mode was enabled and the output is included below

πŸ“œ What is the name of the script you are using?

step-ca

πŸ“‚ What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/step-ca.sh)"

βš™οΈ What settings are you using?

  • Default Settings
  • Advanced Settings

πŸ–₯️ Which Linux distribution are you using?

Debian 13

🧱 Is this Proxmox host running arm64?

No

πŸ“ˆ Which Proxmox version are you on?

pve-manager/9.2.2/b9984c6d90a4bd80 (running kernel: 7.0.2-6-pve)

πŸ“ Provide a clear and concise description of the issue.

When an ACME client attempts to order certificates, the server throws an error error applying certificate template: cannot unmarshal array at offset 2 into Go value of type string"

πŸ”„ Steps to reproduce the issue.

  1. Install step-ca using the script
    1. I used Advanced Mode only because I need to assign a VLAN
    2. For the prompts from step-ca-install.sh, I accepted the defaults except for Country (set to US) and ACME provisioner name (set to acme)
  2. Configure the Proxmox server to use step-ca as the default ACME account
    pvenode acme account register default pki@$(hostname -d) --directory https://<ip address of step-ca lxc>/acme/acme/directory
    
  3. Add your domains for Proxmox (node -> System -> Certificates)
  4. Click "Order Certificates Now"

I did not customize step-ca in any way after installation. I believe this to be an issue with the install script due to the nature of the error message referencing a templating issue and the step-ca-install.sh script installing some additional template files.

❌ Paste the full error output (if available).

Proxmox order certificate output (IP addresses redacted):

Loading ACME account details
Placing ACME order
Order URL: https://STEP-CA-IP-ADDRESS/acme/acme/order/9hmQaifWupFMzPjNNE88mmuPNIkBocrF

Getting authorization details from 'https://STEP-CA-IP-ADDRESS/acme/acme/authz/FYVqjaoROnjFnLReeXJickunxlv6kjKW'
The validation for proxmox.internal is pending!
Setting up webserver
Triggering validation
Sleeping for 5 seconds
Status is 'valid', domain 'proxmox.internal' OK!

All domains validated!

Creating CSR
Checking order status
Order is ready, finalizing order
TASK ERROR: Error: POST to https://STEP-CA-IP-ADDRESS/acme/acme/order/9hmQaifWupFMzPjNNE88mmuPNIkBocrF/finalize {"type":"urn:ietf:params:acme:error:serverInternal","detail":"The server experienced an internal error"} 

step-ca logs (IP addresses redacted):

May 30 10:24:45 step-ca step-ca[6598]: time="2026-05-30T10:24:45-04:00" level=info duration="31.03Β΅s" duration-ns=31030 fields.time="2026-05-30T10:24:45-04:00" method=GET name=ca path=/acme/acme/directory protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=f00a34d4-8fca-4141-9274-887a01825875 response="{\"newNonce\":\"https://STEP-CA-IP-ADDRESS/acme/acme/new-nonce\",\"newAccount\":\"https://STEP-CA-IP-ADDRESS/acme/acme/new-account\",\"newOrder\":\"https://STEP-CA-IP-ADDRESS/acme/acme/new-order\",\"revokeCert\":\"https://STEP-CA-IP-ADDRESS/acme/acme/revoke-cert\",\"keyChange\":\"https://STEP-CA-IP-ADDRESS/acme/acme/key-change\"}" size=282 status=200 user-agent=pve-acme/0.1 user-id=
May 30 10:24:45 step-ca step-ca[6598]: time="2026-05-30T10:24:45-04:00" level=info duration=5.370739ms duration-ns=5370739 fields.time="2026-05-30T10:24:45-04:00" method=GET name=ca nonce=MEFrTnYwZzU0Q01uVWNUSFlmc2hkQjRGN0NoYTE2Ukw path=/acme/acme/new-nonce protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=8cd60589-3aa7-404d-bfa5-9a6b3ebe7054 size=0 status=204 user-agent=pve-acme/0.1 user-id=
May 30 10:24:45 step-ca step-ca[6598]: time="2026-05-30T10:24:45-04:00" level=info duration=46.514895ms duration-ns=46514895 fields.time="2026-05-30T10:24:45-04:00" method=POST name=ca nonce=bzlVZ3lPdExRc2lwOXc1cEhlSVU5TDV0RGNhaGViSHQ path=/acme/acme/new-order protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=0801b15a-2d36-40ae-bfe1-76ba8be9a924 response="{\"id\":\"9hmQaifWupFMzPjNNE88mmuPNIkBocrF\",\"status\":\"pending\",\"expires\":\"2026-05-31T14:24:45Z\",\"identifiers\":[{\"type\":\"dns\",\"value\":\"proxmox.internal\"}],\"notBefore\":\"2026-05-30T14:23:45Z\",\"notAfter\":\"2026-06-06T14:24:45Z\",\"authorizations\":[\"https://STEP-CA-IP-ADDRESS/acme/acme/authz/FYVqjaoROnjFnLReeXJickunxlv6kjKW\"],\"finalize\":\"https://STEP-CA-IP-ADDRESS/acme/acme/order/9hmQaifWupFMzPjNNE88mmuPNIkBocrF/finalize\"}" size=404 status=201 user-agent=pve-acme/0.1 user-id=
May 30 10:24:45 step-ca step-ca[6598]: time="2026-05-30T10:24:45-04:00" level=info duration=12.060326ms duration-ns=12060326 fields.time="2026-05-30T10:24:45-04:00" method=POST name=ca nonce=QXVsU1NOVjZEbWQwVzFGMUdFaEtuU2FMbHo4WUdic3o path=/acme/acme/authz/FYVqjaoROnjFnLReeXJickunxlv6kjKW protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=d94abb51-0aa9-45f4-811d-0a8023887c76 response="{\"identifier\":{\"type\":\"dns\",\"value\":\"proxmox.internal\"},\"status\":\"pending\",\"challenges\":[{\"type\":\"dns-01\",\"status\":\"pending\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/XxXYCYP6xSK1ZBw6YYXrlWq9g63ngKu4\"},{\"type\":\"http-01\",\"status\":\"pending\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/MRyfT0kYnl9UEUeytDlAOI3pVbnFE2Ss\"},{\"type\":\"tls-alpn-01\",\"status\":\"pending\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/cDERnUZyV14dhPHQv9UrGA3t34mIHlji\"}],\"wildcard\":false,\"expires\":\"2026-05-31T14:24:45Z\"}" size=732 status=200 user-agent=pve-acme/0.1 user-id=
May 30 10:24:46 step-ca step-ca[6598]: time="2026-05-30T10:24:46-04:00" level=info duration=19.788956ms duration-ns=19788956 fields.time="2026-05-30T10:24:45-04:00" method=POST name=ca nonce=WHVNYkdQbFQ0T0xQRjhXMWJlbkcxYXR6dGtWYkhNMVU path=/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/MRyfT0kYnl9UEUeytDlAOI3pVbnFE2Ss protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=db459b28-7877-4ceb-a2db-da395ef0dd3a response="{\"type\":\"http-01\",\"status\":\"valid\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"validated\":\"2026-05-30T14:24:46Z\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/MRyfT0kYnl9UEUeytDlAOI3pVbnFE2Ss\"}" size=229 status=200 user-agent=pve-acme/0.1 user-id=
May 30 10:24:51 step-ca step-ca[6598]: time="2026-05-30T10:24:51-04:00" level=info duration=23.099047ms duration-ns=23099047 fields.time="2026-05-30T10:24:51-04:00" method=POST name=ca nonce=UU1wOHQ2QmRzVnh5ZEs1MTNJNDhvOTRCRkRVRklPQ1g path=/acme/acme/authz/FYVqjaoROnjFnLReeXJickunxlv6kjKW protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=e1de5aa9-adba-4e41-8e01-9a5ae67530ca response="{\"identifier\":{\"type\":\"dns\",\"value\":\"proxmox.internal\"},\"status\":\"valid\",\"challenges\":[{\"type\":\"dns-01\",\"status\":\"pending\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/XxXYCYP6xSK1ZBw6YYXrlWq9g63ngKu4\"},{\"type\":\"http-01\",\"status\":\"valid\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"validated\":\"2026-05-30T14:24:46Z\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/MRyfT0kYnl9UEUeytDlAOI3pVbnFE2Ss\"},{\"type\":\"tls-alpn-01\",\"status\":\"pending\",\"token\":\"zEv40lvivvBqO1FtAQjojqEvrGkdw5PU\",\"url\":\"https://STEP-CA-IP-ADDRESS/acme/acme/challenge/FYVqjaoROnjFnLReeXJickunxlv6kjKW/cDERnUZyV14dhPHQv9UrGA3t34mIHlji\"}],\"wildcard\":false,\"expires\":\"2026-05-31T14:24:45Z\"}" size=763 status=200 user-agent=pve-acme/0.1 user-id=
May 30 10:24:51 step-ca step-ca[6598]: time="2026-05-30T10:24:51-04:00" level=info duration=21.515986ms duration-ns=21515986 fields.time="2026-05-30T10:24:51-04:00" method=POST name=ca nonce=MFl1RDd5SFpEaTFJQXNWRnZ1M2cwc1dzT1NiSGJ5VUI path=/acme/acme/order/9hmQaifWupFMzPjNNE88mmuPNIkBocrF protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=839efbcf-785f-408b-ae23-b13456f4d53e response="{\"id\":\"9hmQaifWupFMzPjNNE88mmuPNIkBocrF\",\"status\":\"ready\",\"expires\":\"2026-05-31T14:24:45Z\",\"identifiers\":[{\"type\":\"dns\",\"value\":\"proxmox.internal\"}],\"notBefore\":\"2026-05-30T14:23:45Z\",\"notAfter\":\"2026-06-06T14:24:45Z\",\"authorizations\":[\"https://STEP-CA-IP-ADDRESS/acme/acme/authz/FYVqjaoROnjFnLReeXJickunxlv6kjKW\"],\"finalize\":\"https://STEP-CA-IP-ADDRESS/acme/acme/order/9hmQaifWupFMzPjNNE88mmuPNIkBocrF/finalize\"}" size=402 status=200 user-agent=pve-acme/0.1 user-id=
May 30 10:24:51 step-ca step-ca[6598]: time="2026-05-30T10:24:51-04:00" level=error duration=13.179674ms duration-ns=13179674 error="error finalizing order: error signing certificate for order 9hmQaifWupFMzPjNNE88mmuPNIkBocrF: error applying certificate template: cannot unmarshal array at offset 2 into Go value of type string" fields.time="2026-05-30T10:24:51-04:00" method=POST name=ca nonce=TFczVmV4bElmRzhlMmp3cGxnY0ExV2hYQzhTb2hvM2o path=/acme/acme/order/9hmQaifWupFMzPjNNE88mmuPNIkBocrF/finalize protocol=HTTP/1.1 referer= remote-address=PROXMOX-IP-ADDRESS request-id=b5966ec2-89d2-4666-8829-b8ce1595452e response="{\"type\":\"urn:ietf:params:acme:error:serverInternal\",\"detail\":\"The server experienced an internal error\"}" size=105 status=500 user-agent=pve-acme/0.1 user-id=

πŸ–ΌοΈ Additional context (optional).

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions