This commit is contained in:
Face
2025-09-08 19:34:40 +03:00
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----

View File

@@ -10,12 +10,17 @@ static func initialize():
static func load_builtin_ca():
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:
var ca_cert_pem = ca_file.get_as_text()
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():
trusted_ca_certificates.append(ca_cert_pem)
trusted_ca_certificates.append(arson_ca_cert_pem)
print("Loaded built-in GURT CA certificate")
else:
print("Built-in CA certificate not yet configured")