The X.500 key name for stateOrProvinceName (2.5.4.8) OID is "S". This value is different from the RFC 1779 X.500 key name ("ST"). " Unfortunately it looks like ST=Oregon will not work, and you'll need a subject name with S=Oregon. Hidmondou, Did signi...
ST=Oregon, L=Portland, O=Acme Inc, CN=Acme Inc"-FriendlyName"AcmeTest"-CertStoreLocation'Cert:\CurrentUser\my';(Get-ChildItem-path"Cert:\CurrentUser\my"|?{$_.Subject.IndexOf("Oregon")-ne-1}).Subject