This patch attempts to note the use of the root.crt file in the server.
authorBruce Momjian
Thu, 23 Sep 2004 13:16:02 +0000 (13:16 +0000)
committerBruce Momjian
Thu, 23 Sep 2004 13:16:02 +0000 (13:16 +0000)
Given that PostgreSQL will output a message complaining about it's
absence if you're using SSL mode, I feel it's important that it gets a
mention in the documentation at some point.

Dominic Mitchell

doc/src/sgml/runtime.sgml
src/include/c.h

index 831bd1accec4fc70fa19dbfeb4be056b7dd118e9..ff437bad35ad1ec7b59bfef9316a4245b1f94641 100644 (file)
@@ -1,5 +1,5 @@
 
 
 
@@ -4358,6 +4358,24 @@ chmod og-rwx server.key
    to turn the certificate into a self-signed certificate and to copy the
    key and certificate to where the server will look for them.
   
+
+  
+   If verification of client certificates is required, place the
+   certificates of the CA you wish to check for in
+   the file root.crt in the data directory.  When
+   present, a client certificate will be requested from the client
+   making the connection and it must have been signed by one of the
+   certificates present in root.crt.  If no
+   certificate is presented, the connection will be allowed to proceed
+   anway.
+  
+
+  
+   The root.crt file is always checked for, and
+   its absence will be noted through a message in the log.  This is
+   merely an informative message that client certificates will not be
+   requested.
+  
  
 
  
index cfce57c070a3adf3887639c6f1d11c3471707bd0..0c9e88d18446e7b534c75e1e2829bdd7b16c5c29 100644 (file)
@@ -12,7 +12,7 @@
  * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
  * Portions Copyright (c) 1994, Regents of the University of California
  *
- * $PostgreSQL: pgsql/src/include/c.h,v 1.172 2004/09/16 16:58:38 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/c.h,v 1.173 2004/09/23 13:16:02 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
 #include 
 #endif
 
-#if (defined(WIN32) || defined(__CYGWIN__)) && \
-   !defined(_MSC_VER) && !defined(__BORLANDC__)
+#if defined(WIN32) || defined(__CYGWIN__)
+#if    !defined(_MSC_VER) && !defined(__BORLANDC__)
 /* We have to redefine some system functions after they are included above */
 #include "pg_config_os.h"
+#else
+#include    /* We don't have a port file for MSC/BCC */
+#endif
 #endif
 
 /* Must be before gettext() games below */