X509Certificate

Inherits: Resource < Reference < Object

An X509 certificate (e.g. for SSL).

Description

The X509Certificate class represents an X509 certificate. Certificates can be loaded and saved like any other Resource.

They can be used as the server certificate in StreamPeerSSL.accept_stream (along with the proper CryptoKey), and to specify the only certificate that should be accepted when connecting to an SSL server via StreamPeerSSL.connect_to_stream.

Note: Not available in HTML5 exports.

Methods

Error load ( String path )
Error save ( String path )

Method Descriptions

Error load ( String path )

Loads a certificate from path ("*.crt" file).

Error save ( String path )

Saves a certificate to the given path (should be a "*.crt" file).

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_x509certificate.html