SHARE
TWEET

Untitled

tinyevil Nov 11th, 2018 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top