Update CertificateManager.gd

This commit is contained in:
creeperita09
2025-09-08 18:32:13 +02:00
committed by GitHub
parent 607807d22c
commit f0694b1ebc

View File

@@ -10,12 +10,17 @@ static func initialize():
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)
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()
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)
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")