Update CertificateManager.gd
fix indentation
This commit is contained in:
@@ -9,20 +9,20 @@ static func initialize():
|
|||||||
print("Certificate Manager initialized with ", trusted_ca_certificates.size(), " trusted CAs")
|
print("Certificate Manager initialized with ", trusted_ca_certificates.size(), " trusted CAs")
|
||||||
|
|
||||||
static func load_builtin_ca():
|
static func load_builtin_ca():
|
||||||
var ca_file = FileAccess.open("res://Assets/gurted-ca.crt", FileAccess.READ)
|
var ca_file = FileAccess.open("res://Assets/gurted-ca.crt", FileAccess.READ)
|
||||||
var arson_ca_file = FileAccess.open("res://Assets/arson-ca.crt", FileAccess.READ)
|
var arson_ca_file = FileAccess.open("res://Assets/arson-ca.crt", FileAccess.READ)
|
||||||
if ca_file:
|
if ca_file:
|
||||||
var ca_cert_pem = ca_file.get_as_text()
|
var ca_cert_pem = ca_file.get_as_text()
|
||||||
ca_file.close()
|
ca_file.close()
|
||||||
|
|
||||||
var arson_ca_cert_pem = arson_ca_file.get_as_text()
|
var arson_ca_cert_pem = arson_ca_file.get_as_text()
|
||||||
arson_ca_file.close()
|
arson_ca_file.close()
|
||||||
|
|
||||||
if not ca_cert_pem.is_empty():
|
if not ca_cert_pem.is_empty():
|
||||||
trusted_ca_certificates.append(ca_cert_pem)
|
trusted_ca_certificates.append(ca_cert_pem)
|
||||||
trusted_ca_certificates.append(arson_ca_cert_pem)
|
trusted_ca_certificates.append(arson_ca_cert_pem)
|
||||||
print("Loaded built-in GURT CA certificate")
|
print("Loaded built-in GURT CA certificate")
|
||||||
else:
|
else:
|
||||||
print("Built-in CA certificate not yet configured")
|
print("Built-in CA certificate not yet configured")
|
||||||
else:
|
else:
|
||||||
print("Could not load built-in CA certificate")
|
print("Could not load built-in CA certificate")
|
||||||
|
|||||||
Reference in New Issue
Block a user