Not with python ssl module. M2Crypto cannot do this at the moment, nor python-gnutls. If your client computer has an openssl command, you can re-export this pkcs12 format to pem using the openssl command and use the results, for example:
openssl pkcs12 -in your_pkcs.p12 -out client_certs.pem -clcerts -nokeys [password options] openssl pkcs12 -in your_pkcs.p12 -out keys.pem -nocerts [password options]
However, PKCS12 is completely upset by design , although it is still popular, you should avoid it if possible.
abbot source share