Closed ghost closed 2 years ago
不再需要依赖SwiftNIO源码修改,分别传入3个PEM格式证书即可生成X509证书
调用例子
dynamicCert = CertUtils.genreateCert(host: host, rsaKeyPEM: CertDatas.rsakey.data(using: .utf8)!, caKeyPEM: CertDatas.cakey.data(using: .utf8)!, caCertPEM: CertDatas.cacert.data(using: .utf8)!)
不再需要依赖SwiftNIO源码修改,分别传入3个PEM格式证书即可生成X509证书