Where's the database from generated keys ?

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
sierramike
OpenVpn Newbie
Posts: 2
Joined: Tue Dec 07, 2010 5:09 pm

Where's the database from generated keys ?

Post by sierramike » Tue Dec 07, 2010 5:14 pm

Hi,

I'm using OpenVPN on Debian for a while now, and now I need to move it to another Debian box. I remember when I created the keys for the clients, the script told me they were commited to a database.

What config files and database files do I need to move to the new box so I can keep all the config up and running within minutes ?

Many thanks by advance ...

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: Where's the database from generated keys ?

Post by gladiatr72 » Wed Dec 22, 2010 8:12 pm

Hello,

Well, with an OpenSSL CA, you're going to have 4 things you'll want to preserve:

. openssl.cnf (if you customized it at all)
. your keys and certs (including your ca.crt/key files)
. serial (this is just a running counter of the last index used in...)
. index.txt (keeps a list of your certs and is used to verify uniqueness of the certificate Subject and whether or not they've been revoked)

That's really it unless you're using a fancier method of maintaining your CA than I am :)

Regards,
Stephen
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

sierramike
OpenVpn Newbie
Posts: 2
Joined: Tue Dec 07, 2010 5:09 pm

Re: Where's the database from generated keys ?

Post by sierramike » Wed Dec 22, 2010 10:09 pm

Thanks for the reply, I think I'll give it a try with your tips and see what happen !

Hope I'll find the time withing Christmas days ...

Post Reply