Do not mess up using Tor as a transport layer, where encryption is used for your privacy protection primarily, and the HTTP access protection by using SSL(aka HTTPS ). Onion sites may use HTTPS freely by just routing in stunnel-fashion way all the porsports they need to a full-featured webserver with HTTPS protection enabled.