Updated script to control ssl status
updated script to control the ssl-enabled flag.