I followed these steps and works for me.
Previous you need:
- Wildcard certificate. Ex.: cert.crt
- Private key of wildcard certificate. Ex.: certkey.key
- Bundle certificate with root and intermediate certificates of CA. Ex.: bundle.crt
- Openssl
1.- Make copy of wildcard (you will need)
Ex.: cert-copy.crt
2.- Make bundle with wildcard and bundle.
cat bundle.crt >> cert.crt
3.- Make a pkcs12 certificate
openssl pkcs12 –export –out certpkcs12.pfx –inkey certkey.key –in cert.crt –certfile cert-copy.crt
YOU WILL BE ASKED TO SET A PASSWORD, DON´T FORGET IT
4.- convert to pem format
Openssl pkcs12 –in certpkcs12.pfx –out certpem.pem –nodes
YOU WILL BE ASKED TO ENTER THE PASSWORD
5.- Load certificate in the virtual controller
6.- Reload virtual controller.
7.- Try to login and you will see that the name of the portal is “captiveportal-login.mycompany.com”
IF YOU ARE USING CLEARPASS WEB LOGIN PORTAL, YOU MUST CHANGE THIS PARAMETER INSIDE YOUR LOGIN PAGE