How to communicate with ssl | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to communicate with ssl

I've tried to send an http request on port 443 of site, it was complaining it's not communicating with ssl, so here are my questions: how to ask server for certificate, how it looks and how I should use it to encrypt message (and answer with encrypted message if I can't just use my encrypet request)

23rd Oct 2020, 7:50 PM
nicolas turek
nicolas turek - avatar
4 Answers
+ 1
Here are the specs if you really want to write it yourself: https://tools.ietf.org/html/rfc8446
5th Nov 2020, 5:48 PM
N00B
0
Unless you want to write thousands of lines of code yourself I'd recommend you to use a library like openssl or rustls to enable SSL.
23rd Oct 2020, 8:32 PM
Aaron Eberhardt
Aaron Eberhardt - avatar
0
I want milions of lines... but that's not point, I want to understand it all, so I can use it simply without libs in my app... And surely help people in future I already found how it works in general, I even found some source (which didn't work to me). So I already know that client tells server some basic info, gets some certificate and encryption key... But still it's top of glacier with a lot more under water
23rd Oct 2020, 8:48 PM
nicolas turek
nicolas turek - avatar
0
Thanks, I found it too, by this as answer I gues I have to go trough to find out
5th Nov 2020, 5:56 PM
nicolas turek
nicolas turek - avatar