Support Windows - open the openssl pipe in binary mode, because we're totally pushing binary stuff over it
diff --git a/test/test_crypto.py b/test/test_crypto.py
index 214a4b8..87e9048 100644
--- a/test/test_crypto.py
+++ b/test/test_crypto.py
@@ -732,7 +732,7 @@
Run the command line openssl tool with the given arguments and write
the given PEM to its stdin.
"""
- write, read = popen2(" ".join(("openssl",) + args))
+ write, read = popen2(" ".join(("openssl",) + args), "b")
write.write(pem)
write.close()
return read.read()