Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

X509Certificate

Hérite de : Resource < RefCounted < Object

Un certificat X509 (par ex. pour TLS).

Description

La classe X509Certificate représente un certificat X509. Les certificats peuvent être chargés et sauvegardés comme tout autre Resource.

Ils peuvent être utilisés comme certificat de serveur dans StreamPeerTLS.accept_stream() (avec la clé CryptoKey correcte), et pour spécifier le seul certificat qui devrait être accepté lors de la connexion à un serveur TLS via StreamPeerTLS.connect_to_stream().

Tutoriels

Méthodes

Error

load(path: String)

Error

load_from_string(string: String)

Error

save(path: String)

String

save_to_string()


Descriptions des méthodes

Error load(path: String) 🔗

Charge un certificat depuis path (fichier "*.crt").


Error load_from_string(string: String) 🔗

Charge un certificat depuis la chaîne string donnée.


Error save(path: String) 🔗

Sauvegarde un certificat au chemin path donné (devrait être un fichier "*.crt").


String save_to_string() 🔗

Renvoie une représentation en chaîne du certificat, ou une chaîne vide si le certificat est invalide.