Description
Checklist
- Have you pulled and found the error with
jc21/nginx-proxy-manager:latest
docker image?- No
- Are you sure you're not using someone else's docker image?
- Yes
- Have you searched for similar issues (both open and closed)?
- Yes
Describe the bug
Let's encrypt google DNS challenge fails due to improperly formatted key (Error parsing credentials file '/etc/letsencrypt/credentials/credentials-20': [('DECODER routines', '', 'unsupported')]). This might be due to escaping the certificate meta data in backend/internal/certificate.js:877 which replaces the '\n' characters in the private_key field to '\n' (doing a cat /etc/letsencrypt/credential/*
shows a double \n where a single one should be). See image below:
Note the upload form posts data with escaped new lines as such:
Nginx Proxy Manager Version
2.10.1
To Reproduce
Steps to reproduce the behavior:
- Go to SSL Certificates
- Click on 'Add SSL Certificate'
- Click Use a DNS Challenge
- Select Google as DNS provider
- Enter Google DNS Credentials
- Agree to TOS
- Press Save
- See error
Expected behavior
SSL Challenge succeeds
Operating System
Alpine Linux 3.16
Additional context
Running inside Proxmox container using scripts from https://github.com/ej52/proxmox-scripts/tree/main/lxc/nginx-proxy-manager