Skip to content

Add double quotes wrapping $CAFullname #220

@systeminsecure

Description

@systeminsecure

Describe the Bug
Suggested fix output for ESC11 does not run correctly when CAFullName has spaces.

Steps To Reproduce
Copy suggested fix code from output after tool has run, run suggested code on CA in either cmd prompt or powershell, receive error "CertUtil: Too many arguments".

Expected Behavior
The command executes successfully.

Environment

  • Locksmith Version: 2025.1.1
  • OS: Windows 2022
  • PowerShell Version: Windows PowerShell 5.1
  • PowerShell Host: PowerShell ISE

Additional Context

This can be fixed by changing lines 369 and 378 to the following:
certutil -config "$($CAFullname)" -setreg CA\InterfaceFlags +IF_ENFORCEENCRYPTICERTREQUEST

Great tool - Thanks!!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions