ScreenOS Firewalls (NOT SRX)
Posts: 20
Registered: ‎03-30-2012
Accepted Solution

Retrieving a pre-share key

Our company is combining two data centers into one at a new location. We will also be using a different SSG-520 that is already there to separate production from non-production.

I need to reestablish several VPN tunnels.

The other side of the tunnel does not need to be changed.

Our external IP address is not changing. Is there a way to retrieve the pre-share key in plain text?
If not, what we be there preferred way to re-establish the tunnel?

Or am I stuck rebuilding these tunnels?



Thank you!

Distinguished Expert
Posts: 2,763
Registered: ‎03-30-2009

Re: Retrieving a pre-share key

You cannot decrypt to clear text.


But you can take the encrypted lines from your original configuration and use the import function to apply them to your new box.


Just pull all the vpn related configuration and save as a plain text file.

Go to Configuration -- Update -- Config file

Browse to the file

Choose the "Merge" option

Hit apply


This will create the same gateway and shared secret as in the original firewall.

Steve Puluka BSEET
Juniper Ambassador
Senior Network Engineer - UPMC Pittsburgh, PA
MCP - Managing Server 2003 MCP - Windows XP Professional
MCTS Windows 7
Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.