$Log$
+ Revision 614.47 2004/02/22 04:55:15 ajc
+ * CSR code more or less in its final form for now.
+
Revision 614.46 2004/02/22 04:42:05 ajc
* Initial version of function to automatically generate a Certificate
Signing Request if one is not present
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
name = X509_REQ_get_subject_name(x);
- /* Tell it who we are (FIXME more here later) */
+ /* Tell it who we are */
+
+ /*
X509_NAME_add_entry_by_txt(name, "C",
MBSTRING_ASC, "US", -1, -1, 0);
+ X509_NAME_add_entry_by_txt(name, "ST",
+ MBSTRING_ASC, "New York", -1, -1, 0);
+
+ X509_NAME_add_entry_by_txt(name, "L",
+ MBSTRING_ASC, "Mount Kisco", -1, -1, 0);
+ */
+
+ X509_NAME_add_entry_by_txt(name, "O",
+ MBSTRING_ASC, config.c_humannode, -1, -1, 0);
+
+ X509_NAME_add_entry_by_txt(name, "OU",
+ MBSTRING_ASC, "Citadel server", -1, -1, 0);
+
X509_NAME_add_entry_by_txt(name, "CN",
MBSTRING_ASC, config.c_fqdn, -1, -1, 0);
lprintf(1,"General Public License.\n");
lprintf(1, "\n");
- /* Initialize... */
- init_sysdep();
-
/* Load site-specific parameters, and set the ipgm secret */
lprintf(7, "Loading citadel.config\n");
get_config();
config.c_ipgm_secret = rand();
put_config();
+ /* Initialize... */
+ init_sysdep();
+
/*
* Do non system dependent startup functions.
*/