OPNsense Forum

English Forums => 26.7, 26.10 Series => Topic started by: ab on November 02, 2026, 08:49:20 AM

Title: Automated API-driven certificate import on 26.7.8+
Post by: ab on November 02, 2026, 08:49:20 AM
Folks here might find this useful, either as-is or as an API reference:
https://github.com/0xabu/opnsense-cert
 (https://github.com/0xabu/opnsense-cert)
It's a moderately-simple Python script that automates import of a new TLS certificate and supporting CAs, then restarts the webgui service, all using the API. (In the context where I use it, another machine on the local LAN manages renewal and installation of these certificates.)
Title: Re: Automated API-driven certificate import on 26.7.8+
Post by: klinebau on November 02, 2026, 09:36:06 PM
Thank you for posting this!

I've been working on the automation of my certificate renewals and this showed up at a good time.  Your script is well thought out and now I am using it for the opnsense renewals.