本文介绍了Linphone上的SSL客户端证书验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从
And after a lot of effort and understanding of ssl and certificates, I have managed to secure it only 1 way.Following was the best clue and direction:SSL using self signed certs on linphone
我如何利用客户端证书(上面的教程生成的证书)也在服务器上验证客户端;称为完全ssl身份验证
How can I make use of client certificates (which the above tutorial generated) to validate clients also on server; called full ssl authentication
我在linphonerc文件中了解了此设置: verify_client_certs = 1
,但我不知道将客户端证书放在哪里?
I read about this setting in linphonerc file: "verify_client_certs=1"
but I don't know where to put client certs?
推荐答案
Hi you can check on our wiki to more information about client certificats.
Security:ClientCertAuth
1. Creating Client certificate
Generate a Certificate Signing Request
Creates a new private key and a certificate request with CN=username@domain
example [email protected]
openssl req -new -keyout key.pem -out newreq.pem
Sign the client certificate
Creates newcert.pem certificate signed by root certificate. You will need to enter the passphrase of the cacert.pem
openssl ca -policy policy_anything -out newcert.pem -infiles newreq.pem
Then extract the private key in a new file
openssl rsa -in key.pem -out clientkey.pem
Parameters for linphone
In linphonerc add path to client/key certificate
[sip]
client_cert_chain=/pathTo/newcert.pem
client_cert_key=/pathTo/clientkey.pem
这篇关于Linphone上的SSL客户端证书验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!