OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • Upload SSL certificate via SCP
« previous next »
  • Print
Pages: [1]

Author Topic: Upload SSL certificate via SCP  (Read 1111 times)

jbeller

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Upload SSL certificate via SCP
« on: February 13, 2022, 10:57:03 pm »
Hi,

I have one server which generates Let's Encrypt wildcard certificates using DNS-01.
So now I want to copy the pem file to various Opnsense routers we have out in the field.
(We only have ssh access to these routers).
This is no problem using
Code: [Select]
scp cert.pem router-address:/var/etc/Then I do
Code: [Select]
ssh router-address /usr/local/etc/rc.restart_webgui which restarts the webgui, however the old certificate is still used.

Any ideas?

John
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 2023
  • Karma: 194
    • View Profile
Re: Upload SSL certificate via SCP
« Reply #1 on: February 14, 2022, 07:43:32 am »
I wrote a script for that: https://github.com/bartsmit/distcerts

Bart...
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 22.1 Legacy Series »
  • Upload SSL certificate via SCP
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2