changed generating secret to openssl