#1 Re: mORMot 2 » HTTPS on THttpAsyncServer » 2024-10-10 15:43:11

I am use Edge, and test with Chrome and Firefox.

Realy after accept certifate warnings, all fine on Firefox.

The problem is Edge and Chrome. Sometimes raise error.

#2 Re: mORMot 2 » HTTPS on THttpAsyncServer » 2024-10-08 19:29:39

With external file certificate using InitNetTlsContext everything ok.
But self signed using InitNetTlsContextSelfSignedServer sometimes retuns error Exception class ESChannel with message '<>: HandshakeStep returned 80090327 [SEC_E_CERT_UNKNOWN], System Error 87 [ERROR_INVALID_PARAMETER]'

I dont understand why.
I am call correctly InitNetTlsContextSelfSignedServer?

#3 Re: mORMot 2 » HTTPS on THttpAsyncServer » 2024-09-29 01:41:33

I correct my code and now everything is ok.

ab edit: moved to gist

#4 mORMot 2 » HTTPS on THttpAsyncServer » 2024-09-29 01:05:15

allanbrrj
Replies: 8

Hi, I'm starting with mormort.

When try use https, InitNetTlsContextSelfSignedServer or InitNetTlsContext,  returning this error on every request.

Exception class ESChannel with message '<>: HandshakeStep returned 80090331 [SEC_E_ALGORITHM_MISMATCH], System Error 1 [ERROR_INVALID_FUNCTION]'.
Exception class ESChannel with message '<>: HandshakeStep returned 80090327 [SEC_E_CERT_UNKNOWN], System Error 87 [ERROR_INVALID_PARAMETER]'.

I dont undestand where put this code "InitNetTlsContextSelfSignedServer" or "InitNetTlsContext".

I using Server.WaitStarted(10,@FCertificado) but always return erro on request.

I tried use certificate .crt, .pem, .pfx evething return same error, this certicates dont installed on windows.

this is my code.

ab edit: moved to gist

Board footer

Powered by FluxBB