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

Generate Certificates and Keys Using Windows Server PKI

Scheduled Pinned Locked Moved OpenVPN
10 Posts 3 Posters 5.9k Views
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.
  • F
    focalguy
    last edited by Apr 30, 2010, 10:23 PM

    I've been looking all over the place and all I see is information for using easy-rsa on Windows. We have a Windows Server 2008 Active Directory Certificate Services server running PKI in the environment already and I was wondering if I could just use it for all my certificates.

    Now, I'm pretty sure I can figure out the ca.crt, server.crt, server.key and client information. What I don't have any clue to do is how would I generate the dh1024.pem using a Windows PKI? I am a novice with certificates but I am learning so maybe there is something simple I am overlooking. I'm really not even sure what the DH key does.

    Thank you,

    1 Reply Last reply Reply Quote 0
    • G
      GruensFroeschli
      last edited by May 1, 2010, 8:28 AM

      Just use the script "build-dh".
      If you need more specifics what to do when: read the howtos on http://openvpn.net

      We do what we must, because we can.

      Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

      1 Reply Last reply Reply Quote 0
      • F
        focalguy
        last edited by May 2, 2010, 4:05 AM

        @GruensFroeschli:

        Just use the script "build-dh".
        If you need more specifics what to do when: read the howtos on http://openvpn.net

        Ok, can you explain how the script "build-dh" uses the windows server PKI to build the DH key? I was under the impression that script was only a part of the easy-rsa package. I have the pfsense book and understand how to create all the certs and keys with the easy-rsa but the point of my question was how to do it with just the windows tools.

        1 Reply Last reply Reply Quote 0
        • G
          GruensFroeschli
          last edited by May 2, 2010, 8:06 AM May 2, 2010, 8:04 AM

          Which windows tools are you talking about?
          If you install openVPN on windows you automatically install easy-rsa as well.

          Edit: ah now i get it. ^^;
          You're trying to use the AD certificate service to generate them.
          Sorry i dont know anything about that.

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • F
            focalguy
            last edited by May 2, 2010, 5:12 PM

            Ok, thanks. Your reply did get me thinking though. Possibly the DH key is not related to the other certificates and I can just generate that once with easy RSA then still manage all the other certificates with the AD Certificate Services…. maybe I'll give that a shot.

            1 Reply Last reply Reply Quote 0
            • J
              jimp Rebel Alliance Developer Netgate
              last edited by May 3, 2010, 1:40 PM

              Yes, the DH parameters are not directly related to the key, they are just used during the key exchange. You can use easyrsa to generate this one file as needed.

              In 2.0 it is generated automatically, all you do is pick the DH parameter length.

              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
              • F
                focalguy
                last edited by May 3, 2010, 3:28 PM

                Thanks Jim,

                I had some tunnel vision when reading the instructions and thought the DH key was specific to your CA and everything else. I'll give it a shot just generating that one file and doing the rest from Windows. It's nice to know it's generated in 2.0 automatically. 2.0 might come before I have this in production anyways.

                1 Reply Last reply Reply Quote 0
                • F
                  focalguy
                  last edited by May 6, 2010, 11:43 PM

                  Well, I was hoping it would be easier to manage the certificates using the windows interface. If not for me, for the others maybe not so familiar with the command line. I couldn't find a way to get at the text version of the private key though without using some 3rd party tool so I scrapped the idea.

                  For anyone who is curious, I just decided to go with the easy-rsa scripts that come with OpenVPN. It really is quite easy and once set up I think I'll just put together a small set of instructions for anyone else in my organization who might need to create the certs in the future.

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by May 7, 2010, 12:27 AM

                    There are already some EasyRSA instructions for pfSense:
                    http://doc.pfsense.org/index.php/Easyrsa_for_pfSense

                    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
                    • F
                      focalguy
                      last edited by May 7, 2010, 1:23 AM

                      I realize that and I also have the pfSense book which I was following as well. The small set of instructions for my own organization that I was referring to will probably be taken from those with a little side commentary is all. I did not mean to infer that mine would somehow fill a need for the community at large; just my workplace.

                      1 Reply Last reply Reply Quote 0
                      10 out of 10
                      • First post
                        10/10
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received