2019-08-22 14:49:30 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
<class name= "X509Certificate" inherits= "Resource" category= "Core" version= "3.2" >
<brief_description >
2019-09-23 18:16:41 +02:00
An X509 certificate (e.g. for SSL).
2019-08-22 14:49:30 +02:00
</brief_description>
<description >
2019-09-23 18:16:41 +02:00
The X509Certificate class represents an X509 certificate. Certificates can be loaded and saved like any other [Resource].
2019-09-27 22:16:32 +02:00
They can be used as the server certificate in [method 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 [method StreamPeerSSL.connect_to_stream].
2019-08-22 14:49:30 +02:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "load" >
<return type= "int" enum= "Error" >
</return>
<argument index= "0" name= "path" type= "String" >
</argument>
<description >
2019-09-23 18:16:41 +02:00
Loads a certificate from [code]path[/code] ("*.crt" file).
2019-08-22 14:49:30 +02:00
</description>
</method>
<method name= "save" >
<return type= "int" enum= "Error" >
</return>
<argument index= "0" name= "path" type= "String" >
</argument>
<description >
2019-09-23 18:16:41 +02:00
Saves a certificate to the given [code]path[/code] (should be a "*.crt" file).
2019-08-22 14:49:30 +02:00
</description>
</method>
</methods>
<constants >
</constants>
</class>