Extract Subject details from certificate in Batch script
Posted: 02 Jul 2019 05:03
Hi,
I am using below command to get Subject information:
CertUtil -dump test.cer
I am getting full certificate info.
But I need to get below Subject details and use in batch script
Subject:
CN=test.co.uk
OU=test
O=test
L=test
S=test
C=GB
Can someone please help me to get only this info to make use in batch script.
-Dosuser
I am using below command to get Subject information:
CertUtil -dump test.cer
I am getting full certificate info.
But I need to get below Subject details and use in batch script
Subject:
CN=test.co.uk
OU=test
O=test
L=test
S=test
C=GB
Can someone please help me to get only this info to make use in batch script.
-Dosuser