Code for oauth style signature and self signed certs, not hooked to anything