Hi Mario,
You can use openssl to convert X509 certificates between PEM and binary (.cert) formats.
You can also convert the private key format with OpenSSL. The private key can be stored in many different formats and it can also be password protected.
Like to convert the X509 certificate from a .cert to a .pem file use the following:
openssl x509 -inform DER -in mycert.cer -outform PEM -out mycert.pem
A nice GUI tool to use for certificates and private keys is the KeyTool Explorer java application. With OpenSSL you can pretty much do everything except for creating Java KeyStore files.
You can use '$objKey->loadKey('instancia_imta_ope', TRUE);' as long as instancia_imta_ope is PEM encoded.
If it is not in PEM format, you can try to convert it using:
openssl rsa -inform DER -in myprivatekey.key -outform PEM -out myprivatekey.pem
The most common OpenSSL commands can be found here:
http://www.sslshopper.com/article-most-common-openssl-commands.htmlRegards,
Chris