Skip to contentSkip to conversation

Security bug with crl-verify

Openvpn-devel Thomas NOEL 2 participants 10 messages May 11, 2005 – May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

I think there is a security issue with the crl-verify code. OpenVPN only check the issuer of the CRL, but not the CRL signature.

If you sign a CRL with another CA (even self signed) which have the same DN than the certificate issuer, OpenVPN accept it as a good CRL : the server or the client do not log any error... So, an attacker can easely produce such a false CRL, nobody can see the attack.

The CRL must be validated : OpenVPN must verify it has been signed by one of the CAs indicated in --ca.

Looking in the "racoon" code, I think that CRL handling is easier with new versions of openssl (>= 0.9.7)

  (...)
  #if OPENSSL_VERSION_NUMBER >= 0x00907000L
        X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK);
        X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);
  #endif
  (...)

With this kind of X509_STORE_CTX, openssl automagically manage all CA and all CRL included in a "CAPath".

Thx,

Signature · 5 lines
Thomas NOEL <[email protected]...> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
Quoted 2 lines

Merci d'éviter de m'envoyer des documents Word ou PowerPoint cf http://www.gnu.org/philosophy/no-word-attachments.fr.html

#1 lore raw
Quoted 9 lines

Hello,

I think there is a security issue with the crl-verify code. OpenVPN only check the issuer of the CRL, but not the CRL signature.

If you sign a CRL with another CA (even self signed) which have the same DN than the certificate issuer, OpenVPN accept it as a good CRL : the server or the client do not log any error... So, an attacker can easely produce such a false CRL, nobody can see the attack.

I don't see how an attacker could produce a false CRL unless they had write access to the CRL file.

Quoted 2 lines

The CRL must be validated : OpenVPN must verify it has been signed by one of the CAs indicated in --ca.

I don't see how it matters whether or not the CRL is validated, because anyone with sufficient privilege to overwrite the CRL file with an "unauthorized" CRL would also simply be able to change the OpenVPN config file to not use a CRL in the first place.

I would only consider this to be a security bug if there was some way that a remote client could successfully connect using a certificate which had been banned by the CRL.

And I don't see how this would be possible, because the CRL bans certificates by serial number, and a remote client could not change the serial number on their certificate unless they had access to the root CA key, or unless they had the ability to actually change the CRL file on the server, which they couldn't do unless they already had root access to the server.

Quoted 1 line

Looking in the "racoon" code, I think that CRL handling

is easier with > new versions of openssl (>= 0.9.7)

Quoted 10 lines
   (...)
   #if OPENSSL_VERSION_NUMBER >= 0x00907000L
         X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK);
         X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);
   #endif
   (...)

With this kind of X509_STORE_CTX, openssl automagically manage all CA and all CRL included in a "CAPath".

Good idea -- it would be better for OpenSSL to handle all of the CRL stuff for 0.9.7 and above.

James

#2 lore raw

Hello,

Quoted 4 lines · James Yonan
Quoted 2 lines

I think there is a security issue with the crl-verify code. OpenVPN only check the issuer of the CRL, but not the CRL signature.
If you sign a CRL with another CA (even self signed) which have the same DN than the certificate issuer, OpenVPN accept it as a good CRL : the server or the client do not log any error... So, an attacker can easely produce such a false CRL, nobody can see the attack.

I don't see how an attacker could produce a false CRL unless they had write access to the CRL file.

I agree... But in theory, write access must not be sufficiant. The CRL is signed by the CA, this must be checked. Ok : it's theory ;-)

To clarify the situation, here is a possible example of attack:

Imagine I'm a user of an OpenVPN network. I have a user certificate, issued by the CA "/CN=zorglub/". I'm fired, and my certificate is revocated by the CA. If (if, if, if...) I have write access to the CRL file on the server, I can put a false CRL signed by a false autosigned CA with the same DN "/CN=zorglub/". Of course, I don't revoke any certificate in the CRL.

Then I can access to the VPN again because the server does not check the CRL signature.

Except the fact that I replaced only one file, this attack will be completely "invisible" : no restart of the daemon, no log in OpenVPN...
As long as the CRL will not have been updated by the real CA, my false
CRL works...

Well, I agree that it's not really a BIG security issue... ;)

Quoted 11 lines
Quoted 1 line

Looking in the "racoon" code, I think that CRL handling

is easier with > new versions of openssl (>= 0.9.7)

Quoted 7 lines

(...)

  #if OPENSSL_VERSION_NUMBER >= 0x00907000L
        X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK);
        X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);

#endif
(...)>>
With this kind of X509_STORE_CTX, openssl automagically manage all CA and all CRL included in a "CAPath".

Good idea -- it would be better for OpenSSL to handle all of the CRL stuff for 0.9.7 and above.

I will try to produce a patch for a "--capath" option. See you in two or three hours.

Thanks again,

Signature · 5 lines
Thomas NOEL <[email protected]...> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
Quoted 2 lines

Merci d'éviter de m'envoyer des documents Word ou PowerPoint cf http://www.gnu.org/philosophy/no-word-attachments.fr.html

#3 lore raw

[Openvpn-devel] Patch for a --capath option (was: Security bug with crl-verify)

Hello,

Quoted 9 lines
Quoted 8 lines
Quoted 7 lines

(...)

 #if OPENSSL_VERSION_NUMBER >= 0x00907000L
       X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK);
       X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);

#endif
(...)>>
With this kind of X509_STORE_CTX, openssl automagically manage all CA and all CRL included in a "CAPath".

Good idea -- it would be better for OpenSSL to handle all of the CRL stuff for 0.9.7 and above.

I will try to produce a patch for a "--capath" option. See you in two or three hours.

Attached, a patch (experimental, proof of concept...).

I'm not very happy with this patch : all CA and CRL are checked, but if I update a CRL, openssl doesn't see any changes and continue to accept my revoked certificate.

I don't know if there is a "cache" system integrated in openssl... I don't know if I correctly use X509_STORE_add_lookup() and X509_LOOKUP_add_dir() ... I'm not a openssl guru, not at all ;-)

Thanks,

Signature · 5 lines
Thomas NOEL <[email protected]...> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
Quoted 2 lines

Merci d'éviter de m'envoyer des documents Word ou PowerPoint cf http://www.gnu.org/philosophy/no-word-attachments.fr.html

options.c +21 -2
diff -Nru --exclude=debian --exclude='*win32*' --exclude=plugin openvpn-2.0.orig/options.c openvpn-2.0/options.c
@@ -388,6 +388,13 @@
   "                  number, such as 1 (default), 2, etc.\n"
   "--ca file       : Certificate authority file in .pem format containing\n"
   "                  root certificate.\n"
+  "--capath dir    : A directory of trusted certificates (CAs"
+#if OPENSSL_VERSION_NUMBER >= 0x00907000L
+  " and CRLs).\n"
+#else
+  ").\n"
+  "                  WARNING: no support of CRL available with this version.\n"
+#endif
   "--dh file       : File containing Diffie Hellman parameters\n"
   "                  in .pem format (for --tls-server only).\n"
   "                  Use \"openssl dhparam -out dh1024.pem 1024\" to generate.\n"
@@ -1096,6 +1103,7 @@
   SHOW_BOOL (tls_client);
   SHOW_INT (key_method);
   SHOW_STR (ca_file);
+  SHOW_STR (ca_path);
   SHOW_STR (dh_file);
   SHOW_STR (cert_file);
   SHOW_STR (priv_key_file);
@@ -1561,7 +1569,8 @@
 #ifdef WIN32
       if (options->cryptoapi_cert)
 	{
-          notnull (options->ca_file, "CA file (--ca)");
+	  if ((!(options->ca_file)) && (!(options->ca_path)))
+	    msg(M_USAGE, "You must define CA file (--ca) or CA path (--capath)");
           if (options->cert_file)
 	    msg(M_USAGE, "Parameter --cert cannot be used when --cryptoapicert is also specified.");
           if (options->priv_key_file)
@@ -1575,6 +1584,8 @@
         {
           if (options->ca_file)
 	    msg(M_USAGE, "Parameter --ca cannot be used when --pkcs12 is also specified.");
+          if (options->ca_path)
+	    msg(M_USAGE, "Parameter --capath cannot be used when --pkcs12 is also specified.");
           if (options->cert_file)
 	    msg(M_USAGE, "Parameter --cert cannot be used when --pkcs12 is also specified.");
           if (options->priv_key_file)
@@ -1582,7 +1593,8 @@
         }
       else
         {
-          notnull (options->ca_file, "CA file (--ca) or PKCS#12 file (--pkcs12)");
+	  if ((!(options->ca_file)) && (!(options->ca_path)))
+	    msg(M_USAGE, "You must define CA file (--ca) or CA path (--capath)");
 	  if (pull)
 	    {
 	      const int sum = (options->cert_file != NULL) + (options->priv_key_file != NULL);
@@ -1619,6 +1631,7 @@
       const char err[] = "Parameter %s can only be specified in TLS-mode, i.e. where --tls-server or --tls-client is also specified.";
 
       MUST_BE_UNDEF (ca_file);
+      MUST_BE_UNDEF (ca_path);
       MUST_BE_UNDEF (dh_file);
       MUST_BE_UNDEF (cert_file);
       MUST_BE_UNDEF (priv_key_file);
@@ -4278,6 +4291,12 @@
       VERIFY_PERMISSION (OPT_P_GENERAL);
       options->ca_file = p[1];
     }
+  else if (streq (p[0], "capath") && p[1])
+    {
+      ++i;
+      VERIFY_PERMISSION (OPT_P_GENERAL);
+      options->ca_path = p[1];
+    }
   else if (streq (p[0], "dh") && p[1])
     {
       ++i;
options.h +1 -0
diff -Nru --exclude=debian --exclude='*win32*' --exclude=plugin openvpn-2.0.orig/options.h openvpn-2.0/options.h
@@ -356,6 +356,7 @@
   bool tls_server;
   bool tls_client;
   const char *ca_file;
+  const char *ca_path;
   const char *dh_file;
   const char *cert_file;
   const char *priv_key_file;
ssl.c +24 -4
diff -Nru --exclude=debian --exclude='*win32*' --exclude=plugin openvpn-2.0.orig/ssl.c openvpn-2.0/ssl.c
@@ -867,12 +867,32 @@
 	}
 
       /* Load CA file for verifying peer supplied certificate */
-      ASSERT (options->ca_file);
-      if (!SSL_CTX_load_verify_locations (ctx, options->ca_file, NULL))
-        msg (M_SSLERR, "Cannot load CA certificate file %s (SSL_CTX_load_verify_locations)", options->ca_file);
+      ASSERT (options->ca_file || options->ca_path);
+      if (!SSL_CTX_load_verify_locations (ctx, options->ca_file, options->ca_path))
+        msg (M_SSLERR, "Cannot load CA certificate file %s path %s (SSL_CTX_load_verify_locations)", options->ca_file, options->ca_path);
+
+      /* Set a store for certs (CA & CRL) with a lookup on the "capath" hash directory */
+      if (options->ca_path) {
+        X509_STORE *store = SSL_CTX_get_cert_store(ctx);
+
+        if (store) {
+          X509_LOOKUP *lookup = X509_STORE_add_lookup(store, X509_LOOKUP_hash_dir());
+	  if (!X509_LOOKUP_add_dir(lookup, options->ca_path, X509_FILETYPE_PEM))
+            X509_LOOKUP_add_dir(lookup, NULL, X509_FILETYPE_DEFAULT);
+	  else
+	    msg(M_WARN, "WARNING: experimental option --capath %s", options->ca_path);
+#if OPENSSL_VERSION_NUMBER >= 0x00907000L
+          X509_STORE_set_flags(store, X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL);
+#else
+#warn This version of OpenSSL cannot handle CRL files in capath 
+          msg(M_WARN, "WARNING: this version of OpenSSL cannot handle CRL files in capath");
+#endif
+	} else
+          msg(M_SSLERR, "Cannot get certificate store (SSL_CTX_get_cert_store)");
+      }
 
       /* Load names of CAs from file and use it as a client CA list */
-      {
+      if (options->ca_file) {
         STACK_OF(X509_NAME) *cert_names;
         cert_names = SSL_load_client_CA_file (options->ca_file);
         if (!cert_names)
#4 lore raw

Re: [Openvpn-devel] Patch for a --capath option (was: Security bug with crl-verify)

Quoted 17 lines · Thomas NOEL

Hello,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

(...)

 #if OPENSSL_VERSION_NUMBER >= 0x00907000L
       X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK);
       X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);

#endif
(...)>>
With this kind of X509_STORE_CTX, openssl automagically manage all CA and all CRL included in a "CAPath".

Quoted 4 lines
Quoted 2 lines

Good idea -- it would be better for OpenSSL to handle all of the CRL stuff for 0.9.7 and above.

I will try to produce a patch for a "--capath" option. See you in two or three hours.

Attached, a patch (experimental, proof of concept...).

Quoted 7 lines

I'm not very happy with this patch : all CA and CRL are checked, but if I update a CRL, openssl doesn't see any changes and continue to accept my revoked certificate.

I don't know if there is a "cache" system integrated in openssl... I don't know if I correctly use X509_STORE_add_lookup() and X509_LOOKUP_add_dir() ... I'm not a openssl guru, not at all ;-)

Thomas,

Thanks for the patch -- it would be nice to have OpenSSL deal with CRLs internally via CAPath.

I think the "cache" you are seeing is the SSL_CTX object -- did you make any progress in figuring out how to have OpenSSL re-read the CRL info from the CAPath dir?

James

#5 lore raw

Re: [Openvpn-devel] Patch for a --capath option

Hello,

Quoted 3 lines · James Yonan
Quoted 2 lines

I'm not very happy with this patch : all CA and CRL are checked, but if I update a CRL, openssl doesn't see any changes and continue to accept my revoked certificate. I don't know if there is a "cache" system integrated in openssl... I don't know if I correctly use X509_STORE_add_lookup() and X509_LOOKUP_add_dir() ... I'm not a openssl guru, not at all ;-)

I think the "cache" you are seeing is the SSL_CTX object -- did you make any progress in figuring out how to have OpenSSL re-read the CRL info from the CAPath dir?

The cache is in the X509_STORE objet. Looking at openssl sources (0.9.7), there is a "cache" flag in this struct, but this flag is unused:

From x509_vfy.h :

struct x509_store_st

        {
          /* The following is a cache of trusted certs */
          int cache;      /* if true, stash any hits */
          STACK_OF(X509_OBJECT) *objs;    /* Cache of all objects */
          /* These are external lookup methods */
          STACK_OF(X509_LOOKUP) *get_cert_methods;
	  (...)
	}

When OpenSSL have to check a CRL in the STACK_OF(X509_OBJECT), a simple cache algorithm is used : if a CRL is found in the stack, use it ; if not, search it with the registred lookups methods and store it in the stack.

I do not see any system for refresh the cache (no timeout, no function). I have sent a mail on openssl-user list without any anwser.

Looking in apache-ssl, racoon (other openssl projects) : it seems that there all need a restart or reload after update the CRL.

I think a nice solution would be to rebuild the X509_STORE of the SSL_CTX when a SIGHUP ou SIGUSR1 arrived. But I do not understand yet enough the code of OpenVPN :
- where can I add an action when a SIGUSR1 or SIGHUP is handled ?
- how can I get the (list of ?) SSL_CTX object ?

Do you think that it is a good idea, and do you think that it is feasible ?

Thanks,

Signature · 5 lines
Thomas NOEL <[email protected]...> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
Quoted 2 lines

Merci d'éviter de m'envoyer des documents Word ou PowerPoint cf http://www.gnu.org/philosophy/no-word-attachments.fr.html

#6 lore raw

Re: [Openvpn-devel] Patch for a --capath option

Quoted 39 lines · Thomas NOEL

Hello,

Le 18.05.2005 13:42, James Yonan a �crit :

Quoted 9 lines
Quoted 6 lines

I'm not very happy with this patch : all CA and CRL are checked, but if I update a CRL, openssl doesn't see any changes and continue to accept my revoked certificate.
I don't know if there is a "cache" system integrated in openssl... I don't know if I correctly use X509_STORE_add_lookup() and X509_LOOKUP_add_dir() ... I'm not a openssl guru, not at all ;-)

I think the "cache" you are seeing is the SSL_CTX object -- did you make any progress in figuring out how to have OpenSSL re-read the CRL info from the CAPath dir?

The cache is in the X509_STORE objet. Looking at openssl sources (0.9.7), there is a "cache" flag in this struct, but this flag is unused:

From x509_vfy.h :

    struct x509_store_st
         {
           /* The following is a cache of trusted certs */
           int cache;      /* if true, stash any hits */
           STACK_OF(X509_OBJECT) *objs;    /* Cache of all objects */
           /* These are external lookup methods */
           STACK_OF(X509_LOOKUP) *get_cert_methods;
	  (...)
	}

When OpenSSL have to check a CRL in the STACK_OF(X509_OBJECT), a simple cache algorithm is used : if a CRL is found in the stack, use it ; if not, search it with the registred lookups methods and store it in the stack.

I do not see any system for refresh the cache (no timeout, no function). I have sent a mail on openssl-user list without any anwser.

Looking in apache-ssl, racoon (other openssl projects) : it seems that there all need a restart or reload after update the CRL.

Quoted 7 lines

I think a nice solution would be to rebuild the X509_STORE of the SSL_CTX when a SIGHUP ou SIGUSR1 arrived. But I do not understand yet enough the code of OpenVPN :
- where can I add an action when a SIGUSR1 or SIGHUP is handled ?
- how can I get the (list of ?) SSL_CTX object ?

Do you think that it is a good idea, and do you think that it is feasible ?

Because of OpenVPN's security architecture, it is very common for a privilege downgrade or chroot to occur after initialization. This means that it may not be possible to re-read a file after initialization.

This is a major reason why OpenVPN handles CRLs the way it does now: so that (a) the OpenVPN daemon need not be restarted after a CRL update, and
(b) the CRL file itself can be located in the chroot jail without requiring that the private key or any other files reside there as well.

Having said all that, I think --capath + X509_V_FLAG_CRL_CHECK is a good idea, as a more full-featured alternative to --crl-verify, when people don't mind needing to restart the daemon to re-read the CRL files.

James

#7 lore raw

Re: [Openvpn-devel] Patch for a --capath option

Hi,

Quoted 8 lines
Quoted 4 lines

I think a nice solution would be to rebuild the X509_STORE of the SSL_CTX when a SIGHUP ou SIGUSR1 arrived. But I do not understand yet enough the code of OpenVPN :
- where can I add an action when a SIGUSR1 or SIGHUP is handled ?
- how can I get the (list of ?) SSL_CTX object ?
Do you think that it is a good idea, and do you think that it is feasible ?

Because of OpenVPN's security architecture, it is very common for a
privilege downgrade or chroot to occur after initialization. This means
that it may not be possible to re-read a file after initialization.
This is a major reason why OpenVPN handles CRLs the way it does now: so that (a) the OpenVPN daemon need not be restarted after a CRL update, and (b) the CRL file itself can be located in the chroot jail without requiring that the private key or any other files reside there as well.

Ok, I see the issue :
CRL are in the "--capath" directory, so in the chroot jail. But CA certificates can be presents in this directory too. It can be a problem if an attacker managed to add a false CA & CRL in this directory : the CA will be directly accepted by openvpn, so the signed certificates will be accepted too, without any restart.

In fact, I think that all openssl systems with a "--CAPath" option must have read access to the directory. So it's not a pure openvpn "bug"...

(note: a very nice feature could be to be able to add CRLs via the new managment port...)

Can you explain me very quickly where and how I can add a "x509_stores_reset()" function in openvpn, that it will be executed when a sigusr1 is received? I'm sorry but I do not clearly understand the signal managment in "sig.c".

Quoted 3 lines

Having said all that, I think --capath + X509_V_FLAG_CRL_CHECK is a good idea, as a more full-featured alternative to --crl-verify, when people don't mind needing to restart the daemon to re-read the CRL files.

Restart OpenVPN is a problem for me : our tunnels are used for "real-time" apps (hundreds of Windows TSE clients), I cannot stop them and break all TSE clients in case of a simple revocation... :-(

The ultimate solution will be OCSP, but... we are in 2005 ;-)

Thank you for your attention about this issue.

Signature · 5 lines
Thomas NOEL <[email protected]...> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
Quoted 2 lines

Merci d'éviter de m'envoyer des documents Word ou PowerPoint cf http://www.gnu.org/philosophy/no-word-attachments.fr.html

#8 lore raw
In reply to Thomas NOEL
Quoted 25 lines · Thomas NOEL

Hello,

Quoted 9 lines · James Yonan
Quoted 6 lines

I think there is a security issue with the crl-verify code. OpenVPN only check the issuer of the CRL, but not the CRL signature.
If you sign a CRL with another CA (even self signed) which have the same DN than the certificate issuer, OpenVPN accept it as a good CRL : the server or the client do not log any error... So, an attacker can easely produce such a false CRL, nobody can see the attack.

I don't see how an attacker could produce a false CRL unless they had write access to the CRL file.

I agree... But in theory, write access must not be sufficiant. The CRL is signed by the CA, this must be checked. Ok : it's theory ;-)

To clarify the situation, here is a possible example of attack:

Imagine I'm a user of an OpenVPN network. I have a user certificate, issued by the CA "/CN=zorglub/". I'm fired, and my certificate is revocated by the CA. If (if, if, if...) I have write access to the CRL file on the server, I can put a false CRL signed by a false autosigned CA with the same DN "/CN=zorglub/". Of course, I don't revoke any certificate in the CRL.

Quoted 2 lines

Then I can access to the VPN again because the server does not check the CRL signature.

True, but I think you're somewhat stretching the connotation of "security bug" here.

If a disgruntled employee with root access tries to leave a back door on the server before security escorts him out of the building, one cannot ascribe his ability to do so as a security bug. root access, by definition, is unrestricted. No matter how much OpenVPN tries to authenticate the CRL, an attacker with root privileges could easily install a stealth backdoor on the server which would completely bypass the VPN.

James

#9 lore raw

Hello,

Quoted 1 line · James Yonan

True, but I think you're somewhat stretching the connotation of "security bug" here.

Yes. Sorry if the "security bug" subject hurt you.

Quoted 4 lines

No matter how much OpenVPN tries to
authenticate the CRL, an attacker with root privileges could easily install a stealth backdoor on the server which would completely bypass the VPN.

Ok, another example :
- a root CA
- two intermediate CAs
On the server we have 3 CA certificates and 3 CRL. The CRLs are updated by a cron job. If an attacker managed to modify the CRL of one intermediate CA, he can simulate a false CRL with the same DN as the root CA or the other intermediate CA... The cron job on the server will normally and automatically fetch the false CRL... It's not a very extrem situation : only one intermediate CA has been attacked.

Of course, as OpenVPN only handle one CRL with --crl-verify (and consequently only one CA), it's not a problem for now, I'm agree with you. But if openvpn has to manage several CA (like in a real PKI), the CRL management will have to be finer. Fortunately, OpenSSL 0.9.7 integrate all the tools for that.

Again, thanks for OpenVPN, and do not misundestood me : OpenVPN is a very very nice piece of code anyway :-)

Signature · 5 lines
Thomas NOEL <[email protected]...> http://www.auf.org/
Coordinateur des infrastructures techniques
Agence universitaire de la Francophonie (AUF)
Services centraux Paris - 4 place de la Sorbonne - 75005 Paris
Tél: +33 (0)1 44 41 18 18, poste 1822 Tlc: +33(0)1 44 41 18 19
Quoted 2 lines

Merci d'éviter de m'envoyer des documents Word ou PowerPoint cf http://www.gnu.org/philosophy/no-word-attachments.fr.html