Quantcast
Channel: Active questions tagged openvpn - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 823

Is it possible to recover the ca.crt and ca.key after i deleted them?

$
0
0

I accidentally removed my OpenVPN ca.crt, ca.key, server.crt and server.key with the ./clean-all command. I didn't know that the server config (currently also the "signing machine") pointed to the easy-rsa/keys directory instead of to the certificates folder as we do on the clients. (i know its stupid to not check this first but that is to late now)

For some reason stay the already connected devices still connected. I can also connect new clients with the existing (old/currently deployed) certificates. I think this is because i did not restart the vpn service yet, isn't it? (I don't dare to restart the service now because i'm scared I can't access the clients anymore)

Is there a way to get my ca.key so I can generate a new server.crt and server.key? (Or maybe so get the server.x back as well). I still have the ca.crt as its available on the clients.

When i cant get my ca.key back, what is the best way to solve my issue? I suppose i need to

  1. generate a new ca.crt and ca.key
  2. generate a new server certificate
  3. generate new client certificates
  4. distribute the new (client) certificates to the clients (as i can still reach them via VPN now)
  5. restart the VPN service on the clients (so they use the new certificate)
  6. restart the VPN service on the server so the new certificates become active (when i forgot a client, its "lost" from now on?)

It is important that i do not "lose" clients as i need to drive a few hours to get access to some of the clients!


Viewing all articles
Browse latest Browse all 823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>