squid can't encrypt traffic and the howto you followed does not say how to encrypt it. It says how to configure squid so it passes the traffic between https websites and the client through squid and not directly.
If you want a secure way to proxy then try using openvpn as a VPN and direct all internet traffic through it.
java socket