Added option to do secure check (do not accept invalid SSL certificate) via getopt