You will need to build your own image. When using "make menuconfig", you need you navigate to "network Web Servers/Proxies squid " and select "Enable dynamic SSL certificate generation" from "Optional Features" .
Do not forget, that squid is memory hungry. Incl. this SSL-stuff expect about >40MB RAM for it, without any caching.