remove trailing whitespaces
call new_cert_init after the password was set (bnc#609449)