Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    ACME certificate update does not refresh Stunnel certificate PEM file

    Scheduled Pinned Locked Moved ACME
    2 Posts 1 Posters 644 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Robert de Wit
      last edited by Robert de Wit

      On pfSense CE release 2.8.1.

      After an ACME 1.2 certificate update, all used locations are updated but not the certificates of Stunnel. I do use a restart shell command "/usr/local/etc/rc.d/stunnel.sh restart" in the Post-Renew Actions.

      Only by either; uninstalling and reinstalling Stunnel or going into the Stunnel GUI and make a fake save, the PEM certificate in the directory "/usr/local/etc/stunnel" is recreated.

      I did see several other forum messages and summited bugs about this behavior.
      What can I do to correct this?

      1 Reply Last reply
      Reply Quote 0
      • R
        Robert de Wit
        last edited by

        Some feedback: after a lot of experimenting and using AI, the following solution works for version 2.8.1:

        Under "Post-Renew Actions," create a shell command for each different certificate you are using with Stunnel:

        cat /cf/conf/acme/CERTIFICATE-NAME.fullchain /cf/conf/acme/CERTIFICATE-NAME.key > /usr/local/etc/stunnel/CERTIFICATE-RefId.pem && pkill -HUP stunnel
        

        CERTIFICATE-NAME is the name of the certificate used in the ACME package.

        CERTIFICATE-RefId is the number within config.xml that references the associated certificate name.

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
        Privacy Policy · Cookie Policy