Sort:  

sorry, im not a mac user yet. sudo... is for linux - unbuntu. I guess you can install phyton and ssl also on a mac and then run the phyton script above, or you can install a virtual machine and install unbuntu there...

Thank you, will try it on a Raspberry Pi and see if it works :)