redbird
redbird copied to clipboard
Cant redirect requests from HTTPS to HTTP
I am trying to place a selenium server which is listening on port 4444 behind a https url so chrome will not complain about https to http requests.
This is my code from examples but doesnt work :
var redbird = new require('redbird')({
port: 8080,
ssl: {
port: 8443,
key: keys.serviceKey,
cert: keys.certificate
}
});
redbird.register("https://localhost:4444/", "http://localhost:4444/");
What example are you referring too?
The first parameter to register is the domain, without http/s or port.. Your port have already be set to 8080, and for SSL 8443..
So if you did ->
redbird.register("localhost", "http://localhost:4444/");
and then logged onto you browser as https://localhost:8443, this would then give you an SSL connection to localhost:4444, but your certificate will of course be invalid.