:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/X509Certificate.xml. .. _class_X509Certificate: X509Certificate =============== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` An X509 certificate (e.g. for SSL). .. rst-class:: classref-introduction-group Description ----------- The X509Certificate class represents an X509 certificate. Certificates can be loaded and saved like any other :ref:`Resource`. They can be used as the server certificate in :ref:`StreamPeerSSL.accept_stream` (along with the proper :ref:`CryptoKey`), and to specify the only certificate that should be accepted when connecting to an SSL server via :ref:`StreamPeerSSL.connect_to_stream`. .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------------------+---------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load` **(** :ref:`String` path **)** | +---------------------------------------+---------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save` **(** :ref:`String` path **)** | +---------------------------------------+---------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_X509Certificate_method_load: .. rst-class:: classref-method :ref:`Error` **load** **(** :ref:`String` path **)** Loads a certificate from ``path`` ("\*.crt" file). .. rst-class:: classref-item-separator ---- .. _class_X509Certificate_method_save: .. rst-class:: classref-method :ref:`Error` **save** **(** :ref:`String` path **)** Saves a certificate to the given ``path`` (should be a "\*.crt" file). .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`