I have a code that makes the transformation but need to do it with native PHP functions because it is not activated support for running exec:
exec(\"openssl pkcs
See dan's comment on php.net:
php.net
Use the following code to convert from DER to PEM and PEM to DER.