I'm using the following code:
http2.connect('https://api.sandbox.push.apple.com, {
key: apnCertDev,
cert: apnCertDev, // <- this certificate causes the problem
passphrase: "password",
});
With NodeJS version < 10 it works fine, but in later versions I get this:
Error: error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak
Apparently this is because the certificate is using SHA1, which the newer versions of OpenSSL (available in NodeJS > 10) consider insecure. This certificate however is generated by Apple and I have no control over it.
Is there any other way to fix this, besides downgrading NodeJS?
Thanks!