Advertisement
tinyevil

Untitled

Nov 11th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. cert = read_cert("server_cert.public_key");
  2.  
  3. connection = connect_ssl("https://server");
  4.  
  5. if ( !connection.check_public_key(cert) ){
  6. exit();
  7. }
  8.  
  9.  
  10. connection.send({
  11. SN : read_device_sn(),
  12. command : whatever else need to be sent
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement