Certificate Chain Error when updating Certificates in Aruba ClearPass

,

I was recently contacted by someone to assist with some maintenance on their Aruba ClearPass Policy Manager servers. One of those tasks was replacing their expiring, but everytime they went to replace it they got an error along the lines of Certificate chain is invalid. The expected order is Policy Manager Server, Sub CA and Root CA certificates even though the certificate files were valid

I got their PFX file and pulled it apart again with OpenSSL – for those running on Windows you can use the following commands to pull apart a PFX – each time it will ask you for the passphrase, you can include this in the command with -passin pass:

openssl pkcs12 -in <yourcertname>.pfx -nocerts -out cert.key -nodes
openssl pkcs12 -in <yourcertname>.pfx -nokeys -out cert.crt

Now the fix for this is in that message, we need to make sure that the certificates are in order – in this case the Root as before the Subordinate (Sub) CA certificate. You can open up the .cer file in your favourite text editor and simply move the certificates around making sure to grab everything including the —–BEGIN CERTIFICATE—– and —–END CERTIFICATE—– similar to what I have attached here (you don’t need the Bag Attributes as this is something windows adds)

After saving the tweaked certificate file which now has correctly ordered Sub and Root certificates, we can perform our import in ClearPass by going into ClearPass Policy Manager > Administration > Certificates > Certificate Store and then going Import Certificate, we then select the kind of certificate we are importing/replacing (in this case HTTPS RSA Certificate) and entering the details like below ensuring that we select the right certificate, private key and password.

Now we did try using the PFX, but it looks like it also had the incorrect order, which we can’t easily fix with notepad.

Hope that helps.


Leave a Reply

More Posts

Random password prompts with users running Windows Phone / Mobile Active Sync for Exchange through ISA 2006 or TMG Reverse Proxy

So I recently came across an issue where some end users were getting prompted for their password when running a Windows Phone device (Android and Apple devices seem immune).  The client had recently had an Office 365 hybrid configuration completed and where using ISA / TMG as a reverse proxy to authenticate to their local […]

Changing the Registered User Details for Visual Studio 2010

One of the anoyances I’ve had when installing Visual Studio 2010 is the removal of the user information bit when accepting the License Agreement, this was useful but is now automated and the installer retrieves details from Windows itself. After a fresh install of Windows 7 (with SP1 and it still needed updates afterwards) I […]

How to Switch from IDE to AHCI without repairing/reinstalling Windows

A few weeks ago I installed an SSD drive in my home PC. For some reason up until tonight I never checked what the Sata mode was set to in the bios. It was set to IDE. Usually when changing the storage mode in the bios requires a reformat as windows will no longer boot. […]