You need to generate a new certificate. You cannot edit a certificate once it is created as that would defeat the purpose of using certificates.
A certificate is signed meaning the data it contains is valid and hasn't been modified. This provides you guarantees that the certificate is from who it says it is and allows for the validation of content sent using that cert. If you could modify a cert after the fact then nothing would prevent a malicious user from taking your certificate, modifying the cert to contain the malicious data they want and then let you use the, now modified, cert as though it was the original.