I am testing EAP-TLS for wireless device and tried to create a certificate
authority, and use it to sign a client & server certificate using OpenSSL
for Win32. However, the debug log from RADIUS shows that the certificate are
bad. 

This is the command I used:

>>ca.pl -newca - to create the CA

then I generate a signing request for the server certificate:

>>openssl req -new -keyout server_key.pem -out server_req.pem -config
./openssl.cfg

then sign it:

>>openssl ca  -policy policy_anything  -out server_cert.pem -infiles
server_req.pem

I do the same for the client certificate: 

However authentication was unsuccessful and FreeRADIUS log show that client
certificate is bad: here is a segment of the log:
  rlm_eap: processing type tls
  rlm_eap_tls: Authenticate
  rlm_eap_tls: processing TLS
  eaptls_verify returned 7
  rlm_eap_tls: Done initial handshake
  rlm_eap_tls: <<< TLS 1.0 Alert [length 0002], fatal bad_certificate
TLS Alert read:fatal:bad certificate
    TLS_accept:failed in SSLv3 read client certificate A
rlm_eap: SSL error error:14094412:SSL routines:SSL3_READ_BYTES:sslv3 alert
bad certificate
rlm_eap_tls: SSL_read failed inside of TLS (-1), TLS session fails.
  eaptls_process returned 13
  rlm_eap: Freeing handler
  modcall[authenticate]: module "eap" returns reject for request 4
modcall: leaving group authenticate (returns reject) for request 4
auth: Failed to validate the user.
Login incorrect: [Client/<no User-Password attribute>] (from client Radius
port 1 cli 00-0B-6B-D9-7C-80)



I can't figure out what is wrong. I know that the RADIUS configuration is
good because I have a certificate set that I generate several months ago and
it works. 

I included here the bad and good certificates: 
http://www.nabble.com/file/p19820435/goodCert.zip goodCert.zip 
http://www.nabble.com/file/p19820435/badCert.zip badCert.zip  

any help is greatly appreciate. 


 
-- 
View this message in context: 
http://www.nabble.com/Problem-with-creating-certificate-to-use-with-FreeRADIUS-tp19820435p19820435.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to