Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    OpenVPN CA lifetime too short howto fix ? [SOLVED]

    OpenVPN
    3
    10
    1.0k
    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.
    • noplanN
      noplan
      last edited by noplan

      if you are lost and this happens ?
      with your openVPN CA on your box

      881592bb-eac0-41a7-b905-9d758c60b5ea-grafik.png

      does anyone have a hint how to fix / solve this

      i am pretty shure its simple but i cant find it like the forrest and the tree they say.
      hope someone can help me out here.
      thx in advance!

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        You will need to make a new CA and reissue new certificates to everything that was signed by that CA.

        2.5.0 has the option to renew CA and Certificate entries. You could spin up a 2.5.0 VM, import that CA and its private key, renew it, then export the certificate and copy that back to your live system. Just make sure to retain the key when renewing (Check Reuse Key)

        AFAIR as long as the private key remains the same the signatures should still be valid for entities signed by that CA.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        noplanN 1 Reply Last reply Reply Quote 1
        • A
          albertmiclat
          last edited by

          Hi Jimp,

          I got his error when i try to renew/reissue the CA.
          renewca.png

          Thanks,
          A

          1 Reply Last reply Reply Quote 0
          • A
            albertmiclat
            last edited by

            hmm... looking on the CA looks like it was renews already the validity date change already despite of the error..
            renewca.png

            1 Reply Last reply Reply Quote 0
            • noplanN
              noplan @jimp
              last edited by

              @jimp

              thank you.
              1st things first ... coffeeeeeee 6am not the time for doin open-heart surgery

              but spinnin up a 2.5.0 VM great / awesome / wonderful idea
              on my way

              thank you
              i'll keep you posted

              1 Reply Last reply Reply Quote 0
              • A
                albertmiclat
                last edited by

                hahaha.. i managed to copy over the latest CA to my production environment and clients are still able to connect w/ out any issue… Thanks!!

                noplanN 1 Reply Last reply Reply Quote 0
                • noplanN
                  noplan @albertmiclat
                  last edited by

                  @albertmiclat
                  done that with the exported CA from a 2.5.0 in a vm ?

                  1 Reply Last reply Reply Quote 0
                  • A
                    albertmiclat
                    last edited by albertmiclat

                    @noplan, Yes, but I didn't start from scratch I always have a test environment ready just in case anything I want to test, just make sure to do snapshot so i can revert anytime.

                    Basically I just upgrade my test environment from 2.4.4 to 2.5.0 Development release.

                    Since my test environment contains identical configuration as my production system I jump straight to System > Cert. Manager >Click on the Renew/Reissue button, although it show some error but CA has been renewed.

                    Then, I proceed to export the key and cert. Then, on my production system I basically copied both key and cert accordingly.

                    To make sure everything works stop/start OpenVPN service then try to connect to test.

                    1 Reply Last reply Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      Good to see that worked!

                      You may still need to get an updated copy of the CA to clients, though.

                      For that PHP error, I can't reproduce it here, but I opened https://redmine.pfsense.org/issues/10360 and checked in a change that should fix it.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply Reply Quote 0
                      • noplanN
                        noplan
                        last edited by

                        so i've done it the old school way
                        kind of doing some clean up in user name and settings and cleaning up style.

                        • Certificate Manager --> Certificate Revocation --> Certificate Revocation List
                        • added CRL to openVpn Server
                        • revoked all vpn-user Certs via CRL
                        • revoked openVpnServerCert
                        • controlled via System --> Certificate Manager --> Certificates
                        • disabed vpn-users System --> User Manager --> Users

                        so far ...

                        • added new Certs
                        • changed Certs on openVpn Server
                        • adden new CRL to openVpn Server
                        • created new users
                        • testet

                        works like a Charm and it feels good ;)
                        so [solved]

                        Thanks for helpin me out.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.