Skip to content

Commit 47bd800

Browse files
authored
Update Octoprint Systemd Service to fall back to System CA bundle
Octoprint, because it does not specify a CA bundle anywhere, falls back to the default Python CA bundle. This prevents a user from adding a trusted CA, and being able to use that for connections from Octoprint. This change lets Octoprint fall back to use the Debian/Raspbian default CA bundle - so that users can update the CA certificates for the OS (and not have to find other options to figure out how to separately change Python's CA cert bundle.
1 parent 683ff84 commit 47bd800

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modules/octopi/filesystem/root/etc/systemd/system/octoprint.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Wants=network.online.target
66
[Service]
77
Environment="HOST=127.0.0.1"
88
Environment="PORT=5000"
9+
Environment="REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt"
910
Type=simple
1011
User=pi
1112
ExecStart=/home/pi/oprint/bin/octoprint serve --host=${HOST} --port=${PORT}

0 commit comments

Comments
 (0)