开发者

Getting p12 certificates already installed in system with Qt

开发者 https://www.devze.com 2023-02-10 09:10 出处:网络
I made some research in Google and was unable to find the way to get CA certificates already installed in system

I made some research in Google and was unable to find the way to get CA certificates already installed in system

My problem is that my application should pass authentication through swissID authentication system. SwissID provides with USB key whi开发者_开发知识库ch stores certificates. When user inserts USB to soscket windows/MAC automatically installs p12 certificates to system. My problem is that I can't find way to get this certificates from OS and pass them to NetworkAccessManager.

Programming language is: C++ Framework: Qt4.7 OS: Windows/MacOS/Linux

Any help is appreciate.

Thanks Best Regards Taron Sargsyan


What I was looking for was QList QSslConfiguration::caCertificates (); From Qt4 documentation.

Returns this connection's CA certificate database. The CA certificate database is used by the socket during the handshake phase to validate the peer's certificate. It can be moodified prior to the handshake with addCaCertificate(), addCaCertificates(), and setCaCertificates().

0

精彩评论

暂无评论...
验证码 换一张
取 消