Skip to content

CAName corrupted when using CSV listΒ #18

@MrTomasz

Description

@MrTomasz

When using CSV list, CAName gets updated with certreq's -config argument after first execution, thus any following entries will fail with invalid CAName given to the certreq.

Please add following fixup starting @ line 367:

+       $CANameArg = ""
        if (!$CAName -eq "") {
-           $CAName = " -config `"$CAName`""
+           $CANameArg = " -config `"$CAName`""
        }

-       Write-Debug "certreq -submit$CAName `"$req`" `"$cer`""
-       Invoke-Expression -Command "certreq -submit$CAName `"$req`" `"$cer`""
+       Write-Debug "certreq -submit$CANameArg `"$req`" `"$cer`""
+       Invoke-Expression -Command "certreq -submit$CANameArg `"$req`" `"$cer`""

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions