Lojii / Knot

一款iOS端基于MITM(中间人攻击技术)实现的HTTPS抓包工具,完整的App,核心代码使用SwiftNIO实现
GNU General Public License v3.0
1.74k stars 579 forks source link

生成证书方法改进 #19

Closed ghost closed 2 years ago

ghost commented 2 years ago

不再需要依赖SwiftNIO源码修改,分别传入3个PEM格式证书即可生成X509证书

ghost commented 2 years ago

调用例子

dynamicCert = CertUtils.genreateCert(host: host, rsaKeyPEM: CertDatas.rsakey.data(using: .utf8)!, caKeyPEM: CertDatas.cakey.data(using: .utf8)!, caCertPEM: CertDatas.cacert.data(using: .utf8)!)