SSL routines:final_renegotiate:unsafe legacy renegotiation disabled
Answered
Yellowhead catfish posted this in #help-forum
Yellowhead catfishOP
I'm doing an HTTP request using
How can I enable unsafe legacy renegotiation? (
Node version:
Next.js version:
fetch
to an old API which I cannot modify. I'm getting the error below:TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11576:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: [Error: C0A7AF98167F0000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:../deps/openssl/openssl/ssl/statem/extensions.c:922:
] {
library: 'SSL routines',
reason: 'unsafe legacy renegotiation disabled',
code: 'ERR_SSL_UNSAFE_LEGACY_RENEGOTIATION_DISABLED'
}
}
How can I enable unsafe legacy renegotiation? (
fetch
is called from an API route)Node version:
v18.17.1
Next.js version:
13.4.3
Answered by Yellowhead catfish
Solved it using https://stackoverflow.com/a/74600467/2104879 thanks anyway!
2 Replies
Yellowhead catfishOP
Btw, I have found: https://stackoverflow.com/a/76033006/2104879 But I don't know how am I going to set
openssl.cnf
as the OpenSSL config in next
.Yellowhead catfishOP
Solved it using https://stackoverflow.com/a/74600467/2104879 thanks anyway!
Answer