How can the SSL client validate the server's certificate?

后端 未结 3 1413
夕颜
夕颜 2021-02-11 07:25

I am building an application and I am planning on using OpenSSL for securing data transfers.

I am planning on only having the client validate the server\'s certificate.

3条回答
  •  长发绾君心
    2021-02-11 08:06

    not quite sure what you're trying to ask. the server cert is sent to you, the client; you validate the cert by checking its signature (use SHA-1 not MD5, MD5 has been cracked.) The key you have from the CA is the public side; the CA and the server cert holder keep their private keys to themselves. You can validate the cert because the public key is enough to decrypt a message that has been encrypted with the private key. So you don't have to worry, on the cient side, about keeping the cert encrypted at all.

    Have a look at the Wikipedia article on SSL/TLS.

提交回复
热议问题