Results 1 to 8 of 8

Thread: Generating key and certificate for QSslSocket

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    PL
    Posts
    11
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Generating key and certificate for QSslSocket

    I am writing simple network communicator which uses SSL, and I want to be sure how to create certificate and private key correctly. I use following command to create keys:
    Qt Code:
    1. openssl req -x509 -newkey rsa:2048 -keyout server.key -days 365 -out server.crt -nodes
    To copy to clipboard, switch view to plain text mode 
    And on the server I use
    server.crt as argument for addCaCertificate() and setLocalCertificate()
    server.key as argument for setPrivateKey()
    On the client I use
    server.crt as argument for addCaCertificate()
    server.crt is public and I share this for users
    I want to know if this, what I described is correct and secure
    Last edited by dawwin; 26th March 2011 at 21:40.

Similar Threads

  1. QWebView + HTTPS with certificate example
    By kylls in forum Qt Programming
    Replies: 1
    Last Post: 16th March 2011, 06:07
  2. Qt 4.7 SSL error : "The certificate has expired”
    By Joshy Abraham in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2011, 06:06
  3. Qt getting client certificates from OS certificate store.
    By sargsyan.taron in forum Qt Programming
    Replies: 0
    Last Post: 16th February 2011, 16:39
  4. Symbian - self-signed certificate
    By metRo_ in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 10th March 2010, 06:10
  5. Replies: 0
    Last Post: 9th March 2009, 03:02

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
  •  
Qt is a trademark of The Qt Company.