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
Extract Subject details from certificate in Batch script
Moderator: DosItHelp
-
- Posts: 1
- Joined: 02 Jul 2019 04:51
Re: Extract Subject details from certificate in Batch script
I'm unsire if you could use a "for/f"-loop to extract that information (depends on the exact the output of your comnmand).
Could you provide a sample output (with alienated data)?
penpen
Could you provide a sample output (with alienated data)?
penpen