SSL with intermediate certificates for on-premise WebEx


Let’s say for some reason you’re attempting to deploy the on-premises version of WebEx, and you need to put an SSL cert signed by Verisign, Comodo, Entrust etc. on it. Nowadays, any public CA signs their certs with an intermediate certificate, and due to some shortcomings of the WebEx management interface, there’s no way to easily add the intermediate/chain cert on the appliance.

If you’ve tried the method of creating a CSR via the appliance, and imported the signed cert after that, you can’t add the intermediate cert separately.  But you can’t export the private key either.  The documentation says that you can import a PKCS#12/PFX file with the compelte cert/key/chain in it, so that’s where I began.  On a separate machine, I got together a new cert and private key, along with the chain cert ad exported those as a PFX.  When trying to import it I get the error “The certificates do not form a valid certificate chain.” The docs indicate that the elements of the file need to be in a particular order, (but specify the wrong order).

After some trial and error I settled on creating/completing the signing request on another server, exporting the chain to a PFX file, then decomposing the elements with openssl (openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes) and appending each section in the following order to a new text (PEM) file. Also, note that the root cert is not included.

  • Private Key
  • Certificate matched to the Private Key
  • Intermediate/Chain Cert

This worked!

The documentation for this thing is frustratingly lacking, and incorrect in a number of places.  (e.g. from the docs “Your public key must be at least 2048 bits.” <- sort of, in fact can only be 2048 bit, no less, no more if trying to import a PFX.  Otherwise, ERROR. Public Keys in PKCS12 Archive must be 2048 bits in length.)




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: