1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Changed generation method

This commit is contained in:
samson0v
2022-07-15 14:25:47 +03:00
parent cdc532d9cf
commit 4ad52750b1

View File

@@ -175,7 +175,7 @@ class TBUtility:
@staticmethod
def generate_certificate(old_certificate_path, old_key_path, old_certificate):
key = OpenSSL.crypto.PKey()
key.generate_key(OpenSSL.crypto.TYPE_RSA, 2048)
key.generate_key(OpenSSL.crypto.TYPE_EC, 2048)
cert = OpenSSL.crypto.X509()