1
Tutorials and FAQs / Re: ACME sftp automation
« on: December 28, 2022, 02:40:54 am »
Ok, think I've got it working (well, I got the green "Connection and upload test successful" message)
I didn't take full notes as I've been trying all sorts of things over the last week, but I think this is how I did it
(Intermediate steps may be missing)
I didn't take full notes as I've been trying all sorts of things over the last week, but I think this is how I did it
(Intermediate steps may be missing)
- On the ubuntu box, create a user id (non admin), for opnsense to log into using sftp
- ssh into the firewall and get the contents of /var/etc/acme-client/sftp-config/id.ecdsa.pub
- ssh into the ubuntu box as the id that will be used by opnsense acme for the sftp.
- Add the contents of the id.ecdsa.pub file to the .ssh/authorized_keys file.
- ssh into the firewall as admin account.
- sudo su - to get the opnsense menu
- Option 8 to get the shell
- sftp to the ubuntu box as the id that will be used by opnsense acme for the sftp.
- Enter 'yes' to accept the fingerprint
- On the acme automations gui, create the new automation and select the 'upload certificate via SFTP' Run Command.
- SFTP Host - the host name of the ubuntu box
- Host Key - leave blank
- Username - the id that will be used by opnsense acme for the sftp
- Identity Type - leave as ECDSA
- Remote Path - leave blank.
- Hit 'Save' (possibly overkill)
- Re-edit the automation and hit the 'Test Connection' button