Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
x509.certificate_managed certificate is mangled on process under py3 m2crypto #49027
Description of Issue/Question
Having problems with the x509 certificate managed state under m2crypto/py3 on windows. We believe that the issue is not windows specific and is related to the charset changes in py3.
The below example is the passthrough of a certificate resulting in invalid encoding.
Although the demo state is a little contrite, we use pem_managed (we could just as easily just use file.managed?) to put ca certificates in place via the mine. The below reproduces the certificate correctly on the py2 minions that currently use states like the below.
Steps to Reproduce Issue
Run the above state.
State runs to completion:
The new "certificate" is something like (... trimmed for brevity):