If it's in the Mendix Modeler itself, then you can open the Certificate in Project Settings. Here, you can use "Copy to file...” to start an export wizard.
If it's in the Mendix Cloud environment, then you can find the certificates in the "Custom Domains” field. On clicking “Edit”, you can copy the certificate and paste it into a certificate file.