我需要使用cURL通过证书访问对资源的服务。我只有.pfx文件。对于cURL,需要两个.pem文件:CURLOPT_SSLKEY和CURLOPT_SSLCERT,如下所示:---------------------------/cert.pem');----------------------------------
$output = c
我正在Go中开发一个TLS/SSL服务器,需要从创建的PKCS12存储加载密钥对。如何从PCKS12存储中提取键盘并加载它们?下面是我的代码片段,它给了我一个错误:
src/server.go:59:19: cannot use cert (type interface {}) as type []byte in argument19: cannot use key (type *x509.Certificate) as type []byte in argument to ioutil.WriteFi