Bulk import of SSL certificates



  • Hi,

    is there any way to import a bunch of SSL certificates with private keys or do I have to download a config backup, hack insert the base64 encoded private keys and certificates using the XML structure

     <cert><refid>uniqid()</refid>
      <descr><crt>$BASE64_ENCODED_CERTIFICATE</crt>
      <prv>$BASE64_ENCODED_PRIVATE_KEY</prv>
      <caref>$REFID_OF_CA</caref></descr></cert> 
    

    and upload the modified config.xml? Maybe someone already did something like this or knows a better way doing this?

    Thanks, Michael


  • Rebel Alliance Developer Netgate

    There isn't a bulk import, there's really no easy way to code that either. Even if it were a big page with multiple boxes, it would still involve a lot of manual copy/paste work.

    Editing them into the config would be the easiest way to do them in bulk.



  • Not the answer I hoped for, but thanks anyway. I'll do my very best hacking the config… :D


Log in to reply