Fix LE cert creation: use empty meta for NPM API compatibility
NPM's certificate creation endpoint rejects letsencrypt_agree and letsencrypt_email in the meta field (schema validation error). The LE email is configured globally in NPM settings. Empty meta works. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -343,10 +343,7 @@ async def _request_ssl(
|
|||||||
ssl_payload = {
|
ssl_payload = {
|
||||||
"domain_names": [domain],
|
"domain_names": [domain],
|
||||||
"provider": "letsencrypt",
|
"provider": "letsencrypt",
|
||||||
"meta": {
|
"meta": {},
|
||||||
"letsencrypt_agree": True,
|
|
||||||
"letsencrypt_email": admin_email,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
logger.info("Requesting Let's Encrypt certificate for %s (email: %s) ...", domain, admin_email)
|
logger.info("Requesting Let's Encrypt certificate for %s (email: %s) ...", domain, admin_email)
|
||||||
|
|||||||
Reference in New Issue
Block a user