#wss on self generated ssl for server.

1 messages · Page 1 of 1 (latest)

near briar
#

Hello guys,
I am trying to create an awc::ws client. My server is using self generated ssl.
I have also checked the following issue.
https://github.com/actix/actix-web/issues/1069

awc = { version = "3",  features = ["rustls"] }
let (res, mut ws) = awc::Client::new()
        .ws("wss://127.0.0.1:8080")
        .connect()
        .await
        .unwrap();

However I am getting this error :

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: SendRequest(Connect(Io(Custom { kind: InvalidData, error: UnsupportedNameType })))',
GitHub

i have a running actix server based on the websocket-chat example. everything works fine. but when i add ssl support, i can't connect with a client based on examples/websocket/src/client.rs...

proven pilot
#

Rustls doesn't yet support IP address SAN

#

does it work if you use localhost instead of 127...

near briar
#

Hey @proven pilot using the ip address instead, will through verification failed error.

near briar
#

Trying openssl feature throughs verification error.

proven pilot
#

not sure what's wrong in your set up then

near briar
#

Not much actually. Just the chat websoclet example for the server.
Qnd the client from echo example.

#

Is it supposed to work using openssl feature?