Configuring EMS with SSL. "Error occured while reading key data: invalid object or encoding of client key".

Configuring EMS with SSL. "Error occured while reading key data: invalid object or encoding of client key".

book

Article ID: KB0089027

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Description:
Configuring EMS with SSL.
Symptoms:
"Error occured while reading key data: invalid object or encoding of client key".
Cause:
N/A

Issue/Introduction

Configuring EMS with SSL. "Error occured while reading key data: invalid object or encoding of client key".

Resolution

This error can be caused by the private key file format not being correct. Java clients using JSSE as the SSL implementation cannot read private keys in PEM or PKCS8 formats. For JSSE, the only option is to use the PKCS12 file which includes client-side cert and the private key. If Java client is using Entrust as an SSL provider, it'll be able to read separate certs and private keys in PKCS8 format ,but not in PEM format. C clients can read PEM private keys.