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.
Checking the stable version of the documentation...
X509Certificate
继承: Resource < RefCounted < Object
X509 证书(例如用于 TLS)。
描述
X509Certificate 类代表 X509 证书。证书可以像其他的 Resource 资源一样加载和保存。
可以用作 StreamPeerTLS.accept_stream() 中的服务器证书(搭配正确的 CryptoKey),也可以用于指定通过 StreamPeerTLS.connect_to_stream() 连接到 TLS 服务器时应该接受的唯一证书。
教程
方法
load_from_string(string: String) |
|
方法说明
从路径 path
加载证书(“*.crt”文件)。
Error load_from_string(string: String) 🔗
从给定的字符串 string
加载证书。
将证书保存到给定的路径 path
(应该是“*.crt”文件)。
返回证书的字符串表示,如果证书无效则返回空字符串。