When I run
openssl x509 -noout -subject -in testcert.pem
, I get back the subject name as
subject= /L=Dream City/ST=CA/C=US/O=Test/OU=TEST_CG/CN=dream.test.com
Then I used OpenSSL to generate a .pfx file from the .pem and .crt files. Then used Windows Certificates add-in to import the .pfx file. After importing to a my machine (Windows 7), this is how the subject name appears.
subject= /L=Dream City/S=CA/C=US/O=Test/OU=TEST_CG/CN=dream.test.com
Does anyone know why the state is coded as "S" in windows import Vs "ST" in Linux machines?