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

Eredita: Resource < RefCounted < Object

Un certificato X509 (ad esempio per TLS).

Descrizione

La classe X509Certificate rappresenta un certificato X509. È possibile caricare e salvare i certificati come qualsiasi altra Resource.

Possono essere utilizzati come certificato per i server in StreamPeerTLS.accept_stream() (insieme al CryptoKey adeguato), e per specificare l'unico certificato che dovrebbe essere accettato quando ci si collega a un server TLS tramite StreamPeerTLS.connect_to_stream().

Tutorial

Metodi

Error

load(path: String)

Error

load_from_string(string: String)

Error

save(path: String)

String

save_to_string()


Descrizioni dei metodi

Error load(path: String) 🔗

Carica un certificato dal percorso path (file "*.crt").


Error load_from_string(string: String) 🔗

Carica un certificato dalla stringa string.


Error save(path: String) 🔗

Salva un certificato al percorso path (dovrebbe essere un file "*.crt").


String save_to_string() 🔗

Restituisce un stringa che rappresenta il certificato, o una stringa vuota se il certificato è invalido.