Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Uploading Jar file for TLS is erroring with "Invalid Key File" for the private key.

Not applicable

Error when trying to upload jar file with matched key and cert pair:

"code" : "messaging.config.beans.InvalidKeyFile",

"message" : "Invalid key file : {private}.pem",

"contexts" : [ ]

0 2 627
2 REPLIES 2

Not applicable

Hi,

It sounds private key is not in the right format, does it look something like this?

-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,364E1085B4E0344B

5TCIMcALhquhqUqicp8M216i+OHSknPXkFpW/rcdABemFyKzOS07wwPOiX8cf7uY
LVlmB7sdI+xZvOh+Mo7GMOybdeOJzQ9fHKgKQiM8YbSziOiumv4zJF0FLb2SWg11

.............snip .........

/yx/7CKLFhbmFxD/1fg5bFzRDoBluEwHkS0LFQ2SrW7oYjpDzTC9gG1iIFCLTHw4
ezGI1KJx6vAawq0ZtNd/AeYT0fVu0riRCk++JFJzCNFcvDqN9EzG8BB0N7MHiCjz
HJliAli6U6X2sCGY/4uf09ToxXvbrCvFhjMo6hDY2EJ3ao/sEkF93vRAig6hrpQM
-----END RSA PRIVATE KEY-----

Also double check there are the correct number of hypens. There should be 5 at the start and end

of the stop and bottom lines. Also confirm your descriptor.properties It should contain the

correct path: eg if my file is myKey.pem it would contain this entry for the private key.

keyFile={myKey}.pem

Hi,

What should be content of the JAR file if i want to use it to upload keystore?

Thanks in advance