implemented password generation for self-signed certificate