OpenVPN Keys restored
Posted: Wed Sep 03, 2014 10:49 pm
Our OpenVPN keys were restored to the OpenVPN key server using an older restore date and before it was identified many new certificates were created starting with the older restore dates next available serial number causing a duplicate of that serial number and pem for the previously created certificates.
The newly created certificates are using a uniq CN but the serial number and pem number were reissued causing the conflict. It appears that even though I have the original certificates they are associated with the original serial number / pem number. I can not update the index.txt file at the bottom of the file with an edited new serial number and pem number since the certificate (<cn>.crt) and the serial number pem (67.pem) both are associated with the newly reissued serial number and pem number (67.pem).
It does not help to vi 67.pem and change the serial number and pem number since it appears that the below command still sees the pem with original serial number at the time the certificate was issued.
openssl x509 -in 67.pem -noout -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 103 (0x67)
When I modify the (67.pem) and (cn.crt) to reference a different serial number and append to the end of the index.txt file it is still unable to create new certificates but more importantly not able to get the crl.pem updated when we need to revoke the original keys that are no longer acceptable given that we have reissued many new serial number pems that conflict with the original serial number pems.
If there is a way to update the crl.pem given these serial number pem conflicts? or update the index.txt so that these keys are accepted and will create a new certificate and also create a crl.pem when executing revoke-full.
The newly created certificates are using a uniq CN but the serial number and pem number were reissued causing the conflict. It appears that even though I have the original certificates they are associated with the original serial number / pem number. I can not update the index.txt file at the bottom of the file with an edited new serial number and pem number since the certificate (<cn>.crt) and the serial number pem (67.pem) both are associated with the newly reissued serial number and pem number (67.pem).
It does not help to vi 67.pem and change the serial number and pem number since it appears that the below command still sees the pem with original serial number at the time the certificate was issued.
openssl x509 -in 67.pem -noout -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 103 (0x67)
When I modify the (67.pem) and (cn.crt) to reference a different serial number and append to the end of the index.txt file it is still unable to create new certificates but more importantly not able to get the crl.pem updated when we need to revoke the original keys that are no longer acceptable given that we have reissued many new serial number pems that conflict with the original serial number pems.
If there is a way to update the crl.pem given these serial number pem conflicts? or update the index.txt so that these keys are accepted and will create a new certificate and also create a crl.pem when executing revoke-full.