Maybe you do not understand my Question: so just to Clarify, I know how to verify the Certificate for the Server / Client Connection, and as you have pointed out, it could use QSslCertificate, in which case it would have to use a Constructor of some sort, not sure why you mentioned that like it was an Example, because like I said, I already have the code examples I need to figure out that much, my question is can I read a Certificate from disk and stored its Credentials in a File, so that I can verify the Certificate off line, without having SSL or Webserver installed, my guess is that OpenSSL is going to have to be required, not sure, because I can not figure out how to do that with QSslCertificate, nor do I know if its even possible at this point, but I do know how to program, been doing it since 1979, so I think I could use a little help figuring out how to do a task that seems simple, but the way to do it eludes me, I have been researching all the classes, what is confusing me is that I am not using this information to setup an SSL Connection, I only want to verify that the Certificate on Disk, is the same as the one I have on file, I am not connecting to it or using it as an SSL connection, I simple want to open the file, and get some value from it that is secure to use as an Encryption key to decrypt data stored in an XML file, I hope I am clear about the question, I have a hard time explaining things at times.
One of my thoughts is to use one of the Subject fields, then try to decrypt a known value using that key, if it passes I know the Certificate at least has the correct Subject, so I got to thinking maybe there is a field that you can only access if you have a key, but I can not find any feature like that, but it would be nice, so it seems it must exist, but for now I think this level of security might be good enough, because I am sure the certificates must match when I create the connection, which gives me access to an online website. It seems this form of security is about the equivalent to writing the password in an unprotected file, but lets face it, if you have the file, you have the key anyway, so if its on a flash stick, this security might be as good as it gets, I could have the program require online authentication once before it can use the offline mode, then save that verification along with the public access IP address, then only require online validation if the address changes outside a normal Dynamic IP range.
Thanks for the Help.