Up to date

This page is up to date for Godot 4.0. If you still find outdated information, please open an issue.


Inherits: Resource < RefCounted < Object

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


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 StreamPeerTLS.accept_stream (along with the proper CryptoKey), and to specify the only certificate that should be accepted when connecting to a TLS server via StreamPeerTLS.connect_to_stream.



load ( String path )


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).