ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
1 reply
_namechange

Invalid SSL Certificate Error 526

I have a website and a node js https server.
I set the encryption option to Flexible and the website works just fine with https, but when i go to the url and port of the node js https server it says "Invalid SSL certificate Error 526". I already tried to create an origin certificate and inclueded the private key as key option in the https options and the one above as cert option. Here a code snippet:
var options = {
    // add private.pem and public.pem
    key: fs.readFileSync('private.pem'),
    cert: fs.readFileSync('public.pem'),


};
const http = require('https', options);
var options = {
    // add private.pem and public.pem
    key: fs.readFileSync('private.pem'),
    cert: fs.readFileSync('public.pem'),


};
const http = require('https', options);

What can i do to get the https (or more specific socket.io) working? I already tried so much.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Invalid SSL certificate Error code 526
Cloudflare DevelopersCDCloudflare Developers / general-help
11mo ago
Invalid SSL certificate Error code 526
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Cloudflare - Invalid SSL certificate (Error code 526)
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Invalid SSL certificate
Cloudflare DevelopersCDCloudflare Developers / general-help
17mo ago