Please help me understand and solve this problem.
Let's start with an IoT design. When it is working correctly, a remote device has a pem certificate which is used to validate traffic to and from the server, which has holds the matching certificate. While the certificate is not expired, it works perfectly.
Now let's say that the device certificate expires. It will no longer work. However, if the expiry check is removed from the code running at the server end, it works again.
While a device with an expired certificate will work fine as in (2), it is impossible to register an already expired certificate to the server.
I want to allow another device to communicate with this server. I do not have physical access to the device, but I do have the certificates which are loaded onto it. It holds expired certificates but as per (2) above, this isn't actually a problem. The issue is that I cannot register the expired certificate (3). If I could it would work perfectly. Is there a way in which I can alter the validity of the certificate such that I can register it, and it will still be compatible with the certificate on the device? Remember, it is impossible to access the device, so I can't change the certificate on that.
Please be kind while answering this question. It's asked in good faith.