m2crypto generated certificate file "This file is invalid for use as the following: security certificate" error
Sebastian Wright
My python application is using M2Crypto to generate CSR in client, sends it to server and retrieves signed certificate in PEM format and saves as file.
Signed certificate file can be verified by M2Crypto. It can be read by OpenSSL successfully both in client and server.
However Windows clients report "This file is invalid for use as the following: security certificate" error when it is tried to be used. Like wise, in Ubuntu clients, "Could not display <filename>" is reported when it is tried to be viewed.
Platform Information for both client and server:
- Python 2.7.x
- M2Crypto 0.21.1
- OpenSSL 1.0.1e
Do you have any idea, what am I missing?
4 Related questions 5 How do I use m2crypto to validate a X509 certificate chain in a non-SSL setting 1 Using M2Crypto to save and load X509 certs in pem files 1 Pythons M2Crypto raises exception in ssl_ctx_load_verify_locations when loading certificates Related questions 5 How do I use m2crypto to validate a X509 certificate chain in a non-SSL setting 1 Using M2Crypto to save and load X509 certs in pem files 1 Pythons M2Crypto raises exception in ssl_ctx_load_verify_locations when loading certificates 13 How do I verify an SSL certificate in python? 7 Create self signed SSL certificates in Python 0 M2Crypto causes a core dump 4 M2Crypto Error Installing on Windows 1 pip install M2Crypto failing 2 Error when importing M2Crypto in Python on Windows x64 3 Verify signed message with M2Crypto for a self signed certificate Load 7 more related questions Show fewer related questions Reset to default