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

Backup/restore How to restore Certificates only

Scheduled Pinned Locked Moved General pfSense Questions
2 Posts 2 Posters 7.7k 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.
  • M
    muhammad.alitav.com.pk
    last edited by Sep 8, 2015, 5:08 AM

    I am trying to shifted from physical to Virtual environment.

    I have complete backup file and trying to restore it to virtual environment and the fact is that only the Certificates and OPENVPN Configuration are important and I can do the rest as new.

    However I cant seems to find the option in RESTORE AREA custom option to only restore certificates and CA.

    Any help is appreciated.

    Ali.

    1 Reply Last reply Reply Quote 0
    • G
      Gertjan
      last edited by Sep 8, 2015, 6:45 AM

      Hi,

      I guess you are right.
      "Certs" are backed up when you select "All" - you can find them in the exported config.xml file - search for the <cert>lines.

      But, some possibilities exist.
      Just edit the exported config.xml file - keep intact the format, throw everything away except the

      	 <cert><refid>54ca2cf9af6xx</refid>
      
      		<crt>LS0tLS1CRUdJTiBDRVJUSUZJQ0..............................S0tLS0NCg==</crt>
      		<prv>LS0tLS1CRUdJTiBSU.......................EgUFJJVkFURSBLRVktLS0tLQ0K</prv>
      		<caref>54ca2cbc230bb</caref></cert> 
      

      parts.

      Import your modified file.

      Note : respect the XML format, otherwise be prepared for special effects ;)

      Another idea : what about adding

      		       "cert" => gettext("Certificats"),		   
      

      to the file diag_backup.php - around line 190 ;)</cert>

      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
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received