Henry b547d7ab45 tls mutal auth 9 роки тому
..
README.md b547d7ab45 tls mutal auth 9 роки тому
csr_client.json b547d7ab45 tls mutal auth 9 роки тому
main.go b547d7ab45 tls mutal auth 9 роки тому

README.md

gen

cfssl gencert -ca ../certsNkey/ca.pem -ca-key ../certsNkeys/ca-key.pem csr_client.json | cfssljson -bare client

curl query:

curl --cacert ../certsNkeys/ca.pem -E client.both.pem https://localhost:8080/hello

p12 export

openssl pkcs12 -export -out client.p12 -inkey client-key.pem -in client.pem -certfile ../certsNkeys/ca.pem