How to resolve the "certificate could not be added, unable to read the provided PEM file. Missing key or certificate"

How to resolve the "certificate could not be added, unable to read the provided PEM file. Missing key or certificate"

AuthorFullName__c
JFrog Support
articleNumber
000004122
ft:sourceType
Salesforce
FirstPublishedDate
2018-05-10T15:05:05Z
lastModifiedDate
2018-05-10
VersionNumber
4
The PEM file should contain both the certificate and the private key with the following structure :

-----BEGIN PRIVATE KEY-----
 
………………………………...
 
…………………………………
 
…………………………………
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
………………………………...
 
…………………………………
 
…………………………………
-----END CERTIFICATE-----
 
Also please make sure that the PEM file you upload is not password-protected because password-protected PEM files are not supported.