Hi, > Trying to extract the private key and certificate from pfx file > format using ansible module.Can someone please provide the example.
PFX files are usually PKCS #12 files (https://en.wikipedia.org/wiki/PFX), so community.crypto.openssl_pkcs12 (https://docs.ansible.com/ansible/latest/collections/community/crypto/openssl_pkcs12_module.html) should help you. Check out the action=parse example, it dumps the contents into a PEM file, and you can split that one with https://docs.ansible.com/ansible/latest/collections/community/crypto/split_pem_filter.html). Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20230828211004.7ef054bd%40rovaniemi.
