Fix openssl on windows

This commit is contained in:
Ivanq 2020-03-06 08:37:40 +03:00
parent 70feb3a82e
commit 71d8b46ba5
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class CryptConnectionManager:
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)