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:
And on the server I useQt Code:
openssl req -x509 -newkey rsa:2048 -keyout server.key -days 365 -out server.crt -nodesTo copy to clipboard, switch view to plain text mode
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




 
					
					 
							
						 
    
    
    
    
    
    
   
    
    
       
    
    
    
    
   Generating key and certificate for QSslSocket
 Generating key and certificate for QSslSocket
		 
				
				
				
					 Reply With Quote
  Reply With Quote 
							
								
 
    
    
       
    
    
    
    
   
    
    
       
    
   Originally Posted by dawwin
 Originally Posted by dawwin
					

Bookmarks