LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-05-2024, 10:49 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Rep: Reputation: 10
Post Revoking OpenVPN keys


Hello,
I want to use the ./revoke-full "Client_Name" command to revoke a key:
1- Suppose I have two clients with the same name (Jason). I have generated the keys for one and not for the other. Now I revoke Jason's keys and generate new keys again with Jason's name. Because new keys with the same name are generated, can the previous Jason connect to the server?

2- Is the following command enough to refresh the CRL lifetime?
Code:
./easyrsa gen-crl
Thank you.
 
Old 02-06-2024, 12:59 AM   #2
MilesWeb
LQ Newbie
 
Registered: Jan 2024
Posts: 8

Rep: Reputation: 1
Cool

1. No, the previous Jason (with the revoked keys) cannot connect to the server that you are looking for. When verifying certificates, server always look for unique identifier, not just the name.
You can follow practice of using unique client names for each set of keys. This will have more clarity and simplified management.

2. And, yes the command is sufficient to refresh the CRL lifetime
Code:
./easyrsa gen-crl
 
1 members found this post helpful.
Old 02-07-2024, 06:34 AM   #3
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by MilesWeb View Post
1. No, the previous Jason (with the revoked keys) cannot connect to the server that you are looking for. When verifying certificates, server always look for unique identifier, not just the name.
You can follow practice of using unique client names for each set of keys. This will have more clarity and simplified management.

2. And, yes the command is sufficient to refresh the CRL lifetime
Code:
./easyrsa gen-crl
Hello,
Thank you so much for your reply.
What is the default CRL lifetime?
 
Old 02-07-2024, 01:01 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Every certificate has a unique serial number, and that is what is used to identify it for revocation.

The CRL file is itself encrypted and signed so it can't be replaced or tampered with. (Unlike, say, ssh's authorized.keys file.)
 
1 members found this post helpful.
Old 02-10-2024, 12:48 PM   #5
Jason.nix
Member
 
Registered: Feb 2023
Posts: 567

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by sundialsvcs View Post
Every certificate has a unique serial number, and that is what is used to identify it for revocation.

The CRL file is itself encrypted and signed so it can't be replaced or tampered with. (Unlike, say, ssh's authorized.keys file.)
Hello,
Thank you so much for your reply.
I mean, when I generate a client key with Easy-RSA, how many days does it expire?
 
Old 02-13-2024, 08:20 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
I'm not looking at the manual, so I honestly don't know about "expiration dates." I've never had to think about that.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Revoking vs. deleting OpenVPN certificate; & should I also delete the CA cert + key? ziphem Linux - Security 1 04-21-2014 09:05 AM
OpenVPN client has not default gateway when connect to OpenVPN server sailershen Linux - Security 3 03-04-2010 02:20 AM
Revoking GPG key with only passphrase and public key djib Linux - Security 2 03-13-2007 03:20 AM
OpenVPN Question : connecting 5-6 comps with OpenVPN duryodhan Linux - Networking 7 02-15-2007 10:28 PM
Giving write permissions/revoking deleting ability Harlin Linux - Security 2 10-30-2006 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration