Results 1 to 3 of 3

Thread: save ssl certificate to file

  1. #1
    Join Date
    Sep 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default save ssl certificate to file

    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.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,594
    Thanks
    13
    Thanked 1,588 Times in 1,517 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: save ssl certificate to file

    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.

  3. #3
    Join Date
    Sep 2012
    Location
    FL, USA
    Posts
    1
    Qt products
    Qt3
    Platforms
    Unix/X11

    Thumbs up Re: save ssl certificate to file

    Yes, you can save it through an extension as its text file.

Similar Threads

  1. save Qimage in a file
    By OverTheOCean in forum Qt Programming
    Replies: 7
    Last Post: 20th March 2011, 23:42
  2. How to save a file in UTF with BOM?
    By Alan_K in forum Newbie
    Replies: 6
    Last Post: 19th March 2011, 21:32
  3. Not enough space to save file
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2010, 23:14
  4. Save model to file
    By matulik in forum Newbie
    Replies: 4
    Last Post: 11th May 2010, 23:02
  5. Save QWidget as PDF file
    By chapu in forum Newbie
    Replies: 2
    Last Post: 26th April 2010, 04:35

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.