Skip to content

Commit

Permalink
call new_cert_init after the password was set (bnc#899893, bnc#609449)
Browse files Browse the repository at this point in the history
Conflicts:
	src/commandline.ycp
  • Loading branch information
jdsn committed Oct 13, 2014
1 parent e9d3657 commit d8e7c07
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/commandline.ycp
Expand Up @@ -60,6 +60,15 @@
CaMgm::CAName = options["caname"]:"";
CaMgm::currentCA = options["caname"]:"";

if (haskey (options, "capasswd"))
{
CaMgm::passwdMap[CaMgm::CAName] = options["capasswd"]:"";
}
else
{
CaMgm::passwdMap[CaMgm::CAName] = strip(getenv("capasswd"));
}

if (options["type"]:"" == "client")
{
new_cert_init ("Client Certificate");
Expand Down Expand Up @@ -93,15 +102,6 @@
CaMgm::password = strip(getenv("keyPasswd"));
}

if (haskey (options, "capasswd"))
{
CaMgm::passwdMap[CaMgm::CAName] = options["capasswd"]:"";
}
else
{
CaMgm::passwdMap[CaMgm::CAName] = strip(getenv("capasswd"));
}

boolean ret = true;
if (options["kind"]:"" == "client")
{
Expand Down

0 comments on commit d8e7c07

Please sign in to comment.