Working, will tidy up now

Updated crypto, with working self signed certs