2019-08-22 20:49:30 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-02-01 09:03:48 +08:00
<class name= "X509Certificate" inherits= "Resource" version= "4.0" >
2019-08-22 20:49:30 +08:00
<brief_description >
2019-09-24 00:16:41 +08:00
An X509 certificate (e.g. for SSL).
2019-08-22 20:49:30 +08:00
</brief_description>
<description >
2019-09-24 00:16:41 +08:00
The X509Certificate class represents an X509 certificate. Certificates can be loaded and saved like any other [Resource].
2019-09-28 04:16:32 +08: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].
2020-01-14 20:54:31 +08:00
[b]Note:[/b] Not available in HTML5 exports.
2019-08-22 20:49:30 +08:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "load" >
2021-07-30 21:28:05 +08:00
<return type= "int" enum= "Error" />
<argument index= "0" name= "path" type= "String" />
2019-08-22 20:49:30 +08:00
<description >
2019-09-24 00:16:41 +08:00
Loads a certificate from [code]path[/code] ("*.crt" file).
2019-08-22 20:49:30 +08:00
</description>
</method>
<method name= "save" >
2021-07-30 21:28:05 +08:00
<return type= "int" enum= "Error" />
<argument index= "0" name= "path" type= "String" />
2019-08-22 20:49:30 +08:00
<description >
2019-09-24 00:16:41 +08:00
Saves a certificate to the given [code]path[/code] (should be a "*.crt" file).
2019-08-22 20:49:30 +08:00
</description>
</method>
</methods>
</class>