Closed leonard520 closed 2 years ago
I am able to parse the key alias from a certificate by keytool. However I don't know how to get it from X509Certificate2. Any one can suggest? Thanks.
keytool
─ keytool -list -v -keystore abc.pfx -storetype PKCS12 Enter keystore password:
WARNING WARNING WARNING
Keystore type: PKCS12 Keystore provider: SUN
Your keystore contains 1 entry
Alias name: xxxxx <-- This is the information I want Creation date: Nov 19, 2021 Entry type: PrivateKeyEntry
xxxxx
Use another library to achieve it.
I am able to parse the key alias from a certificate by
keytool
. However I don't know how to get it from X509Certificate2. Any one can suggest? Thanks.─ keytool -list -v -keystore abc.pfx -storetype PKCS12 Enter keystore password:
WARNING WARNING WARNING
Keystore type: PKCS12 Keystore provider: SUN
Your keystore contains 1 entry
Alias name:
xxxxx
<-- This is the information I want Creation date: Nov 19, 2021 Entry type: PrivateKeyEntry