Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Issuer name in certificate (i have used keytool)?

Tags:

java

Owner: CN=gateway, OU=gateway, O=gateway, C=ss

Issuer: CN=gateway, OU=gateway, O=gateway, C=ss

Serial number: 4c05ed66

Valid from: Wed Jun 02 11:04:30 IST 2010 until: Fri Jun 03 11:04:30 IST 2011

Certificate fingerprints:

     MD5:  E3:27:75:8D:96:CB:C3:67:EF:F0:5D:E1:D6:85:CD:0C
     SHA1: 2E:8B:67:0D:AC:25:E2:99:50:61:60:88:BA:1F:1C:10:8F:41:7C:27

     Signature algorithm name: SHA1withDSA
     Version: 3

Trust this certificate? [no]: yes

Certificate was added to keystore

Using Keytool i am generating KeyPair and Certificate. Below is the content of my certificate now i want to change the only Issuer name suppose i am verifying it and i want to make myself as a issuer so i want to enter my info here...Owner should be same only Issuer i want to change ..plz tell me how to do it??

like image 237
Rahul Avatar asked Jan 22 '23 23:01

Rahul


1 Answers

You can't, you have to create a new certificate.

The certificate contains a signature of the data it presents (including Owner, Issuer, Fingerpint, ...) and that's what makes up the certificate in the first place.

Put differently: A certificate is designed specifically so that this data can't be modified after its creation.

like image 131
Joachim Sauer Avatar answered Jan 30 '23 01:01

Joachim Sauer