增加搜索功能,socket写入中延迟关闭,完善证书安装引导

This commit is contained in:
wanghongen
2023-07-20 14:02:34 +08:00
parent 1646405e76
commit 3d980fb879
16 changed files with 538 additions and 151 deletions

View File

@@ -38,6 +38,11 @@ class CertificateManager {
static X509CertificateData get caCert => _caCert;
/// 清除缓存
static void cleanCache() {
_certificateMap.clear();
}
/// 获取域名自签名证书
static Future<SecurityContext> getCertificateContext(String host) async {
var cer = _certificateMap[host];