Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cert = read_cert("server_cert.public_key");
- connection = connect_ssl("https://server");
- if ( !connection.check_public_key(cert) ){
- exit();
- }
- connection.send({
- SN : read_device_sn(),
- command : whatever else need to be sent
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement