07-21-2023, 11:07 AM
It's relatively easy to import a certificate into the user's personal store from a pfx file by using CertUtil:
certutil –f –p [certificate_password] –importpfx C:\[certificate_path_and_name].pfx
But this ends up in the Personal Store of the current user. I need it in TrustedPeople on LocalMachine.
Is there any way I can do this from the command line, either by calling different arguments on certutil importpfx, using another certutil command or a different utility? Powershell is another possibility, although I don't know much about it.
Cheers,
Matt
certutil –f –p [certificate_password] –importpfx C:\[certificate_path_and_name].pfx
But this ends up in the Personal Store of the current user. I need it in TrustedPeople on LocalMachine.
Is there any way I can do this from the command line, either by calling different arguments on certutil importpfx, using another certutil command or a different utility? Powershell is another possibility, although I don't know much about it.
Cheers,
Matt