Fix implicit 'insecure' if generate_certs is set

Changing the selected option in a checkbox with $('#foo').val('true'); doesn't seem to work (yet, maybe needs newer jQuery). Do it the old way instead.