PDA

View Full Version : save ssl certificate to file



vinas003
7th September 2012, 01:01
Hi i am creating an encrypted chat program and its going well.

Is there any way for the client to save the servers certificate? The warning "The certificate is self-signed and untrusted" is kinda annoying...

Some code examples would be great.

ChrisW67
7th September 2012, 04:42
When deployed your released application will probably be talking to a server with a real certificate so this should be a non-issue.

QSslConfiguration::setCaCertificates() and its sister function QSslConfiguration::caCertificates () look promising.

elinejoseph
13th September 2012, 10:47
Yes, you can save it through an extension as its text file.