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 state fails under py3 m2crypto with "int too large" #49008
Description of Issue/Question
x509 certificate_managed fails on generated key length.
We have something like this working under py2, this change took place after an upgrade to py3 and compiling/adding m2crypto to it on windows.
Steps to Reproduce Issue
Running the above state results in:
ping @dwoz i know you have tried working with upstream to try to get these packages built. any chance you can see if the instructions @mts-avco gives on how they compiled the package is the correct way to manually compile this package?
And if you have any initial insight as to if this error is indicative of a package build issue or salt code issue.
This was walked into while trying to create a test case for an issue around a mine supplied certificate to x509.pem_managed.
A simpler (crt is directly supplied instead of via mine) test case is at #49027 .
We are worried that that the issue above (and potentially some of the others seen) are related to us having an incorrect build of m2crypto and/or issues around 32bit libraries on a 64bit system and thus are false positives. Will do some further investigation our end/see any observations you have before adding any additional issues.
referenced this issue
Aug 10, 2018
See https://gitlab.com/m2crypto/m2crypto/merge_requests/207/diffs for the upstream fix.