This document describes how to generate a Certificate Signing Request (CSR) in order to obtain a third-party certificate and how to download a chained certificate to a Wireless LAN (WLAN) controller (WLC).
Before you attempt this configuration, you should have knowledge of these topics:
- How to configure the WLC, the Lightweight Access Point (LAP), and the wireless client card for basic operation
- How to use the OpenSSL application
- Public key infrastructure and digital certificates
The information in this document is based on these software and hardware versions:
- Cisco 4400 WLC that runs firmware Version 184.108.40.206
- OpenSSL application for Microsoft Windows
- Enrollment tool that is specific to the third-party Certification Authority (CA)
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
A certificate chain is a sequence of certificates, where each certificate in the chain is signed by the subsequent certificate. The purpose of a certificate chain is to establish a chain of trust from a peer certificate to a trusted CA certificate. The CA vouches for the identity in the peer certificate when it signs it. If the CA is one that you trust, which is indicated by the presence of a copy of the CA certificate in your root certificate directory, this implies you can trust the signed peer certificate as well.
Often, the clients do not accept the certificates because they were not created by a known CA. The client typically states that the validity of the certificate cannot be verified. This is the case when the certificate is signed by an intermediate CA, which is not known to the client browser. In such cases, it is necessary to use a chained SSL certificate or certificate group.
Support for Chained Certificate
In controller versions earlier than Version 220.127.116.11, web authentication certificates can be only device certificates and should not contain the CA roots chained to the device certificate (no chained certificates). With controller Version 18.104.22.168 and later, the controller allows for the device certificate to be downloaded as a chained certificate for web authentication.
- Level 0 - Use of only a server certificate on the WLC
- Level 1 - Use of a server certificate on the WLC and a CA root certificate
- Level 2 - Use of a server certificate on the WLC, one single CA intermediate certificate, and a CA root certificate
- Level 3 - Use of a server certificate on the WLC, two CA intermediate certificates, and a CA root certificate
The WLC does not support chained certificates more than 10KB in size on the WLC. However, this restriction has been removed in WLC Version 22.214.171.124 and later.
Web authentication certificates can be any of these:
For WLCs with software versions earlier than Version 126.96.36.199, the workaround is to use one of these options:
- Acquire an unchained certificate from the CA, which means that the signing root is trusted.
- Have all valid intermediate CA root certificates (trusted or untrusted) installed on the client.
For information on how to use unchained certificates on the WLC, refer to Generate CSR for Third-Party Certificates and Download Unchained Certificates to the WLC.
This document discusses how to properly install a chained Secure Socket Layer (SSL) certificate to a WLC.
Generate a CSR
Complete these steps in order to generate a CSR:
- Install and open the OpenSSL .
In Microsoft Windows, by default, openssl.exe is located at C:\ > openssl > bin.
- Issue this command in order to generate a new CSR:
OpenSSL>req -new -newkey rsa:1024 -nodes -keyout mykey.pem -out myreq.pem
- Sometimes when you try to generate a new CSR, you might receive the error Unable to load config info from /usr/local/ssl/openssl.cnf error in req. This can happen if the location of the openssl.cfg (or openssl.cnf) file is not in the default OpenSSL folder. In order to fix this issue, you have to specify the entire pathname to the openssl.cfg file in the command to generate CSR. Here is an example:
OpenSSL> req -config "C:\Open SSL1\OpenSSL\bin\openssl.cfg" -new -newkey rsa:
1024 -nodes -keyout mykey.pem -out myreq.pem
This path, <C:\Open SSL1\OpenSSL\bin\openssl.cfg>, of the OpenSSL Config file might differ based on the file location.
- After you issue the command, there is a prompt for some information: country name, state, city, and so forth. Provide the required information.
Here is an example:
OpenSSL>req -new -newkey rsa:1024 -nodes -keyout mykey.pem -out myreq.pem
Loading 'screen' into random state - done
Generating a 1024 bit RSA private key
writing new private key to 'mykey.pem'
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:CA
Locality Name (eg, city) :San Jose
Organization Name (eg, company) [Internet Widgits Pty Ltd]:ABC
Organizational Unit Name (eg, section) :CDE
Common Name (eg, YOUR name) :XYZ.ABC
Email Address :Test@abc.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password :Test123
An optional company name :OpenSSL>
- After you provide all of the required details, two files are generated:
- a new private key that includes the name mykey.pem
- a CSR that includes the name myreq.pem
Obtain the Final.pem File
- Copy and paste the CSR information into any CA enrollment tool.
After you submit the CSR to the third-party CA, the third-party CA digitally signs the certificate and sends back the signed certificate chain through email. In the case of chained certificates, you receive the entire chain of certificates from the CA. If you only have one intermediate certificate like in in this example, you receive these three certificates from the CA:
- Root certificate.pem
- Intermediate certificate.pem
- Device certificate.pem
- Once you have all three certificates, copy and paste the contents of each .pem file into another file in this order:
*Intermediate CA cert *
*Root CA cert *
- Save the file as All-certs.pem.
- Combine the All-certs.pem certificate with the private key that you generated along with the CSR (the private key of the device certificate, which is mykey.pem in this example), and save the file as final.pem.
Issue these commands in the OpenSSL application in order to create the All-certs.pem and final.pem files:
openssl>pkcs12 -export -in All-certs.pem -inkey mykey.pem
-out All-certs.p12 -clcerts -passin pass:check123
openssl>pkcs12 -in All-certs.p12 -out final.pem
-passin pass:check123 -passout pass:check123
final.pem is the file that you must download to the WLC. The next step is to download this file to the WLC.
Download the Third-Party Certificate to the WLC with the CLI
Complete these steps in order to download the chained certificate to the WLC with the CLI:
- Move the final.pem file to the default directory on your TFTP server.
- In the CLI, issue these commands in order to change the download settings:
>transfer download mode tftp
>transfer download datatype webauthcert
>transfer download serverip <TFTP server IP address>
>transfer download path <absolute TFTP server path to the update file>
>transfer download filename final.pem
- Enter the password for the .pem file so that the operating system can decrypt the SSL key and certificate.
>transfer download certpassword password
- Issue the transfer download start command in order to view the updated settings. Then enter y at the prompt in order to confirm the current download settings and start the certificate and key download. Here is an example:
(Cisco Controller) >transfer download start
Data Type........................................ Site Cert
TFTP Server IP................................... 10.77.244.196
TFTP Packet Timeout.............................. 6
TFTP Max Retries................................. 10
TFTP Filename.................................... final.pem
This may take some time.
Are you sure you want to start? (y/N) y
TFTP EAP Dev cert transfer starting.
Reboot the switch to use new certificate.
- Reboot the WLC in order for the changes to take effect.
Download the Third-Party Certificate to the WLC with the GUI
Complete these steps in order to download the chained certificate to the WLC with the GUI:
- Copy the device certificate final.pem to the default directory on your TFTP server.
- Choose Security > Web Auth > Cert in order to open the Web Authentication Certificate page.
- Check the Download SSL Certificate check box in order to view the Download SSL Certificate From TFTP Server parameters.
- In the IP Address field, enter the IP address of the TFTP server.
- In the File Path field, enter the directory path of the certificate.
- In the File Name field, enter the name of the certificate.
- In the Certificate Password field, enter the password that was used to protect the certificate.
- Click Apply.
- After the download is complete, choose Commands > Reboot > Reboot.
- If prompted to save your changes, click Save and Reboot.
- Click OK in order to confirm your decision to reboot the controller.