<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Rich, hello and, as ever, thanks for the helpful reply. One very quick question and<BR>
a quick technote 'for the record'.<BR>
 <BR>
< You write, '... It probably won't, unless you either hardcode the clear text password ...'<BR>
 <BR>
Q1: Hardcode where ? Is there an attribute in /etc/ldap.conf specifically for the keyfile password ?<BR>
 <BR>
< You write, '...  or simply have no key password ...'<BR>
 <BR>
For the record, I reckon I need the '-noDES' option if I don't want a key file password:<BR>
 <BR>
openssl req -newkey rsa:1024 -keyout ${FN}.key -out ${FN}.csr -days 7300 -nodes <<EOF<BR>...<BR>EOF<BR>
 <BR>
For reference: <A href="http://www.openssl.org/docs/apps/req.html">http://www.openssl.org/docs/apps/req.html</A>#<BR>
 <BR>
I'll let you all know if my PAM-LDAP Linux login works when using client-certificates for binding to LDAP.<BR>
 <BR>
Thanks again, <BR>-----<BR><BR> <BR>> Date: Tue, 12 May 2009 09:31:16 -0600<BR>> From: rmeggins@redhat.com<BR>> To: fedora-directory-users@redhat.com<BR>> CC: lambam80@hotmail.com<BR>> Subject: Re: [389-users] PAM-LDAP LDAPS (Linux Login) with PAM-LDAP using a client certificate<BR>> <BR>> lambam80@hotmail.com wrote:<BR>> > Hello everybody and, firstly, thanks for your continued support.<BR>> > <BR>> > I hope I've used the correct expression/jargon, ie:PAM-LDAP ?<BR>> > <BR>> > PAM-LDAP works with LDAPS and binding with cn=Directory <BR>> > Manager/password hardcoded in /etc/ldap.conf - great stuff.<BR>> Except for the fact that you have the directory manager clear text <BR>> password hardcoded in ldap.conf :-(<BR>> > This was configured using the GUI <BR>> > '/usr/sbin/system-config-authentication' - also great stuff !<BR>> > <BR>> > Symbolic Link pointing to the CA certificate: Q1. I've searched the <BR>> > web but cannot find what purpose the symbolic link serves.<BR>> > ----------------------------------------<BR>> > <BR>> > # ls -toalr /etc/openldap/cacerts<BR>> > -rw-r--r-- 1 root 1464 2009-03-10 12:21 authconfig_downloaded.pem<BR>> > lrwxrwxrwx 1 root 25 2009-03-10 12:21 123a856c.0 -> <BR>> > authconfig_downloaded.pem<BR>> > <BR>> > <BR>> > Client Certificate etc.<BR>> > --------------------------<BR>> > I'm now experimenting with client certificates and have found the <BR>> > following link:<BR>> > <BR>> > http://lists.fini.net/pipermail/ldap-interop/2005-April/000421.html<BR>> > <BR>> > and see the following example lines for the file /etc/ldap.conf:<BR>> > tls_cert /usr/share/ssl/certs/ldap.pem ($FN.pem in my case)<BR>> > tls_key /usr/share/ssl/certs/ldap.key.pem ($FN.key for me)<BR>> > <BR>> > Q2. ldap.key.pem: Is this file simply the $FN.key file created by the <BR>> > following command ?<BR>> > Will I have trouble if I specify '-passout' ? I assume it protects the <BR>> > file $FN.key.<BR>> > How will PAM-LDAP open the keystore if I have used a password ?<BR>> It probably won't, unless you either hardcode the clear text password, <BR>> or simply have no key password.<BR>> > <BR>> > openssl req -newkey rsa:1024 -keyout ${FN}.key -out ${FN}.csr -passout <BR>> > pass:<password> 0<< EOF >/dev/null 2>&1<BR>> > <SNIP><BR>> > <BR>> > Q3. ldap.pem: Is this file simply the $FN.pem file created by the <BR>> > following command ?<BR>> > <BR>> > openssl ca -in ${FN}.csr -out ${FN}.pem -days 7300 -keyfile <BR>> > $DIR/demoCA/private/cakey.pem \<BR>> > -cert $DIR/demoCA/cacert.pem \<BR>> > -passin pass:<CA PASSWORD> << EOF2 >/dev/null 2>&1<BR>> > <SNIP><BR>> > <BR>> > Thanks again, cdlt,<BR>> > -----------<BR>> > <BR>> > <BR>> ><BR>> > <BR>> ><BR>> > ------------------------------------------------------------------------<BR>> > Create a cool, new character for your Windows Live™ Messenger. Check <BR>> > it out <http://go.microsoft.com/?linkid=9656621><BR>> > ------------------------------------------------------------------------<BR>> ><BR>> > --<BR>> > Fedora-directory-users mailing list<BR>> > Fedora-directory-users@redhat.com<BR>> > https://www.redhat.com/mailman/listinfo/fedora-directory-users<BR>> > <BR>> <BR>> <BR><br /><hr />Internet Explorer 8 makes surfing easier.  <a href='http://go.microsoft.com/?linkid=9655264' target='_new'>Get it now! </a></body>
</html>