I have a server (Srv2.reskit.net) which I want to get a cert for. I can easily use the cert wizard in the IIS manager and it works perfectly. But I want to use PowerShell to get the cert and so tried to use Get-Certificate like this:
Get-Certificate -Template WebServer -CertStoreLocation Cert:\LocalMachine\My -SubjectName Srv2.reskit.org
This returns:
CertEntoll::CX500DistinguishedName::Encode: The string contains an invalid x500 name attributekei, oid, value, or delimiter
Any clues?
What I need is a working solution that gets the cert using only PowerShell - please do not offer solutions that make use of the GUI in any wa