Skip to content

Commit 71d8b46

Browse files
committed
Fix openssl on windows
1 parent 70feb3a commit 71d8b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Crypt/CryptConnection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def createSslRsaCert(self):
158158
proc.wait()
159159
print(back)
160160

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

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

0 commit comments

Comments
 (0)