Auto open/close 80 port for letsencrypt challenge certificate renew

Enrique Garcia Polo

Active Member
Jun 29, 2018
29
1
43
42
Hi

I want to use port 80 challenge with letsencrypt proxmox certificate update automatically but I wan't have port 80 open alltime. Searching I have found a certbot script with pre and post commands that opens and closes 80 port in the router via uPnp (https://darjchen.medium.com/using-certbot-http-01-challenge-using-upnp-on-a-home-router-2f51a88bb9b5).

Is it possible to do the same in Proxmox?
Is there any script file that I can modify to do this? I understand that the gui bottom "request certificate now" starts the certbot script, isn't it?


Thanks for any answer.

Best regards,
 
Last edited:
I have found the command:
pvenode acme cert renew

I installed miniupnpc, and I have written a mini script like this:
Code:
#!/bin/bash

upnpc -a 192.168.2.180 80 80 tcp
pvenode acme cert renew
upnpc -d 80 tcp

but my router (wich has upnp activated) answer me: 606 Action Unathorized....
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!