feat: copy certbot certificates for unique path

This commit is contained in:
2026-04-12 23:40:15 +02:00
parent 73ead1627b
commit 08cf1b22b0
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ curl -X DELETE \
- [x] renew command - [x] renew command
- [x] https mode w/ multiple hosts - [x] https mode w/ multiple hosts
- [x] create certificate on request - [x] create certificate on request
- [ ] certbot symlink certificates for unique path - [x] certbot copy certificates for unique path
- [x] better error page - [x] better error page
- [ ] add favicon.ico + special path - [ ] add favicon.ico + special path
- [ ] [http.server security](https://docs.python.org/3/library/http.server.html#http-server-security) - [ ] [http.server security](https://docs.python.org/3/library/http.server.html#http-server-security)
+3
View File
@@ -156,6 +156,9 @@ class CertManager:
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
) )
self.logger.info("Created certbot certificate for %s", host) self.logger.info("Created certbot certificate for %s", host)
cert_path = self.certbot_conf / "live" / host
cert_path.copy_into(self.self_signed_path, follow_symlinks=False)
self.logger.debug("Copied certbot certificate to self certificates")
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
self.logger.exception( self.logger.exception(
"Could not create certbot certificate for %s\n%s", "Could not create certbot certificate for %s\n%s",