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

    Generating OpenVPN user certificates from shell

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 149 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.
    • S
      schaphil
      last edited by

      Hi guys,

      is it possible to generate user certificates for OpenVPN from shell? I have to create a lot of new certificates and this takes a long time via the webinterface.

      Greetings

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        You tried option 12 ?
        You'll be dealing with some sort of PHP shell scripting.
        See the GUI (source) how CA's and certs are generated, and then use these PHP functions to do it 'manually'.

        It's just an idea.

        Plan B : use the usual "openssl" commands as usual, and then just use PHP (see option 12) examples how to stiore them into the config.xml file so they waill be aviable to the GUI => show up over there and can get sued elsewhere in the GUI).

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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