第一步:
百度 搜索 rsa 转 pcks8 将 .key 文件 转换成 pcks8.key 。
第二部:
将 chain.crt 的 内容 复制到 public.crt 下方。。 新的 public.crt 重命名为 *.pem 至此
val certificate = File("$sslroot/*.pem") // 证书 val privateKey = File("$sslroot/*.key") // 私钥