Merge branch 'main' of https://github.com/outpoot/gurted
This commit is contained in:
2
flumi/Assets/arson-ca.crt
Normal file
2
flumi/Assets/arson-ca.crt
Normal file
@@ -0,0 +1,2 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
-----END CERTIFICATE-----
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user