Skip to content

Commit

Permalink
Fix openssl on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Mar 9, 2020
1 parent 70feb3a commit 71d8b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Crypt/CryptConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def createSslRsaCert(self):
proc.wait()
print(back)

print(subprocess.run(helper.shellquote(self.openssl_bin) + " rand -hex 256", shell=True, stdout=subprocess.PIPE).stdout.decode(errors="replace"))
print(subprocess.run(helper.shellquote(self.openssl_bin) + " rand -hex 65536", shell=True, stdout=subprocess.PIPE).stdout.decode(errors="replace"))

if not (os.path.isfile(self.cacert_pem) and os.path.isfile(self.cakey_pem)):
self.log.error("RSA ECC SSL CAcert generation failed, CAcert or CAkey files not exist. (%s)" % back)
Expand Down

0 comments on commit 71d8b46

Please sign in to comment.