title: Manually verify SSL Self Signed certificate signature - javascript
body: <p>I'm trying to manually verify self signed certificate but the process is not clear.
  I created a self signed certificate <em>server.cert</em> using a <em>ca.crt</em> file which I also created.</p>
  
  <p>I provided the server.key + server.crt to my SSL server.</p>
  
  <p>now, how the client suppose to verify the server.cert (assuming the server send it server.cert)?</p>
  
  <p>As I understand, when creating a server.crt, the ca supposed to encrypt the Hash(server.cert) using the ca's private-key and this whole thing (including the signature) is the server certificate. so how would I validate the certificate. I suppose I somehow need to be using the ca.cert in my client side? because the ca.cert also contains the ca.public key, but what do I need to do to the server.crt to be able to say that the signature is correct?</p>