:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the X509Certificate.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_X509Certificate: X509Certificate =============== **Inherits:** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`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 :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`. **Note:** Not available in HTML5 exports. Methods ------- +---------------------------------------+---------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`load` **(** :ref:`String` path **)** | +---------------------------------------+---------------------------------------------------------------------------------------------+ | :ref:`Error` | :ref:`save` **(** :ref:`String` path **)** | +---------------------------------------+---------------------------------------------------------------------------------------------+ Method Descriptions ------------------- .. _class_X509Certificate_method_load: - :ref:`Error` **load** **(** :ref:`String` path **)** Loads a certificate from ``path`` ("\*.crt" file). ---- .. _class_X509Certificate_method_save: - :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.)`