开发者

Getting p12 certificates already installed in system with Qt

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜