Project

General

Profile

Actions

Feature #7189

closed

Letsencrypt acme sync in HA environment

Added by Adam Lawler over 8 years ago. Updated about 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
ACME
Target version:
-
Start date:
02/01/2017
Due date:
% Done:

0%

Estimated time:
Plus Target Version:

Description

Configure the letsencrypt package https://github.com/pfsense/FreeBSD-ports/tree/devel/security/pfSense-pkg-acme to sync between pfsense instances configured in HA.

Actions #1

Updated by Jim Pingle over 8 years ago

There are a couple considerations here to keep straight for GUI use as well.

  • One cert with SANs for both hosts individually is probably the safest bet, the cert will sync to the secondary, but it should not try to issue or renew from the backup node.
  • After issue, the cert should sync on its own. Will need manually chosen as the GUI cert on each node after
  • After an update/renew, something will need to trigger a GUI restart on the secondary node so it starts using the new certificate
Actions #2

Updated by Jim Pingle over 8 years ago

To confirm, with the latest Let's Encrypt package, you can get by with LE only on the primary node. It can generate the cert which is put in the cert store and synchronized as expected. Using a cert with multiple SAN entries -- one hostname for each node, plus a hostname that points to the CARP VIP -- works well on the latest version of the acme package.

I'm not convinced the ACME package should be installed on the secondary except, perhaps, as a backup of sorts. The primary node will sync the certs automatically the only things that have to happen on the secondary are restarting services to pick up new certs on renewal.

Actions #3

Updated by Jim Thompson over 8 years ago

  • Category set to ACME
  • Assignee set to Jim Pingle
Actions #4

Updated by Adam Lawler over 8 years ago

Since the certs automatically sync between active and passive nodes, I am inclined to agree that acme should not be installed on the secondary.

Actions #5

Updated by Jim Pingle about 8 years ago

  • Status changed from New to Feedback

I just pushed a new feature to the ACME package, it can now send service restart commands via XMLRPC using the system default HA XMLRPC Sync settings.

So to finally put a nail in the last issue here, you can add a new action to the list set to "Restart Remote Service (XMLRPC)" and enter "webgui" for the command, and it will restart the GUI process on the HA Peer after synchronizing a cert post-renewal.

There is still no need to have the package installed on the secondary.

Actions #6

Updated by Jim Pingle about 8 years ago

  • Status changed from Feedback to Assigned

Well, it works on 2.4, needs some adjustments for 2.3.x yet.

Actions #7

Updated by Jim Pingle about 8 years ago

  • Status changed from Assigned to Feedback

Pushed a fix for 2.3.x versions now.

Actions #8

Updated by Jim Pingle about 8 years ago

  • Status changed from Feedback to Resolved

Works on both 2.4 and 2.3.x now.

Actions

Also available in: Atom PDF