Skip to content

ssl for websocket server #22

Open
Open
@qiin

Description

Hi,andremussche!,Thanks for you DelphiWebsockets.
I use TIdWebsocketServer for ssl,then can access my host(https://10.11.12.14:443) through internet browser.But use TIdHTTPWebsocketClient access hint: Error while upgrading:"200:HTTP/1.1 200 OK" .
Maybe i can't use it correctly。
My code:
server := TIdWebsocketServer.Create(Self);
server.DefaultPort := 80;
server.Bindings.Clear;
Binding := Server.Bindings.Add;
Binding.IP := '10.11.12.14';
Binding.Port := 443;
IdServerIOHandlerSSLOpenSSL1.SSLOptions.RootCertFile := '....1_root_bundle.crt';
IdServerIOHandlerSSLOpenSSL1.SSLOptions.CertFile := '.com.crt';
IdServerIOHandlerSSLOpenSSL1.SSLOptions.KeyFile := '..key';
server.IOHandler := self.IdServerIOHandlerSSLOpenSSL1;

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions