'How to Corvert .cer certificate into cert.pem and key.pem

Is it possible to convert a .cer file of P10 type (Basic256Sha256) into two files key.pem and cert.pem so that they are usable via server.set_security_string("Basic256Sha256, SignAndEncrypt, cert.pem, key.pem") in a Python opcua server? If so, can you tell me how?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source