Ssl key validation fails

I uploaded a certificate after which my instance could’nt restart anymore,
This is the error i got, has anyone encountered such ?
e

vents.js:377
openhim-core       |       throw er; // Unhandled 'error' event
openhim-core       |       ^
openhim-core       | 
openhim-core       | Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
openhim-core       |     at Object.createSecureContext (_tls_common.js:149:17)
openhim-core       |     at Server.setSecureContext (_tls_wrap.js:1330:27)
openhim-core       |     at Server (_tls_wrap.js:1185:8)
openhim-core       |     at new Server (https.js:74:3)
openhim-core       |     at Object.createServer (https.js:110:10)
openhim-core       |     at /app/lib/server.js:579:34
openhim-core       |     at /app/lib/middleware/tlsAuthentication.js:97:14
openhim-core       |     at /app/node_modules/mongoose/lib/model.js:5074:18
openhim-core       |     at processTicksAndRejections (internal/process/task_queues.js:77:11)
openhim-core       |     at runNextTicks (internal/process/task_queues.js:64:3)
openhim-core       |     at processImmediate (internal/timers.js:437:9)
openhim-core       | Emitted 'error' event on Function instance at:
openhim-core       |     at /app/node_modules/mongoose/lib/model.js:5076:15
openhim-core       |     at processTicksAndRejections (internal/process/task_queues.js:77:11)
openhim-core       |     at runNextTicks (internal/process/task_queues.js:64:3)
openhim-core       |     at processImmediate (internal/timers.js:437:9) {
openhim-core       |   library: 'x509 certificate routines',
openhim-core       |   function: 'X509_check_private_key',
openhim-core       |   reason: 'key values mismatch',
openhim-core       |   code: 'ERR_OSSL_X509_KEY_VALUES_MISMATCH'
openhim-core       | }
openhim-core       | 2023-03-16T23:14:45.538Z [master] debug: worker 45 is now connected to 0.0.0.0:5052

Simon. Hello. OpenHIE has a collection of reference software packages. Can you be a little more specific on the tool you are trying to use? Once we understand which software you are referring to (instant OpenHIE, OpenHIM, OpenCR?) , we can ensure your question is seen by the right group.