NGINX working on ReactOS, but gets stuck on HTTPS – any ideas?

Ask your support questions in here

Moderator: Moderator Team

Post Reply
aaronk6
Posts: 4
Joined: Thu Aug 11, 2022 10:40 pm

NGINX working on ReactOS, but gets stuck on HTTPS – any ideas?

Post by aaronk6 »

Hi,

As a little fun project I’ve set up NGINX (v. 1.23.1) on ReactOS to serve this website: http://reactos.aaron.cc

To my surprise, this just works out of the box (which I honestly didn’t expect).

However, I didn’t succeed in getting HTTPS up and running.

On the client, I’m seeing the following (using curl):

Code: Select all

# curl -v -k https://localhost:8443
*   Trying 127.0.0.1:8443...
* Connected to localhost (127.0.0.1) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=reactos.aaron.cc
*  start date: Aug  9 18:18:00 2022 GMT
*  expire date: Nov  7 18:17:59 2022 GMT
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/1.1
> Host: localhost:8443
> User-Agent: curl/7.81.0
> Accept: */*
>
At this point, NGINX is just stuck. It also won’t accept additional requests on port 80 until I cancel the curl command with CTRL + C.

I’ve set the NGINX error logging to debug and this is the output:

[ external image ]

This is the HTTPS configuration (pretty much the default one):

Code: Select all

    server {
        listen       443 ssl;
        server_name  localhost;

        ssl_certificate      d://certs/fullchain.pem;
        ssl_certificate_key  d://certs/privkey.pem;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
            root   d://htdocs;
            index  index.html;
        }
    }
The same NGINX configuration works fine with NGINX on Windows 11.

Any idea how I can make it work on ReactOS?

Thanks,
Aaron
Start
Posts: 169
Joined: Sun May 16, 2010 5:59 pm

Re: NGINX working on ReactOS, but gets stuck on HTTPS – any ideas?

Post by Start »

aaronk6 wrote: Thu Aug 11, 2022 10:55 pm Hi,

As a little fun project I’ve set up NGINX (v. 1.23.1) on ReactOS to serve this website: http://reactos.aaron.cc

To my surprise, this just works out of the box (which I honestly didn’t expect).

However, I didn’t succeed in getting HTTPS up and running.
Hi!
You need to create a bug report.
https://reactos.org/wiki/File_Bugs
aaronk6
Posts: 4
Joined: Thu Aug 11, 2022 10:40 pm

Re: NGINX working on ReactOS, but gets stuck on HTTPS – any ideas?

Post by aaronk6 »

Thanks, I’ve just filed a bug report here: https://jira.reactos.org/browse/CORE-18301
oskog97
Posts: 2
Joined: Sun Jul 10, 2022 12:21 pm

Re: NGINX working on ReactOS, but gets stuck on HTTPS – any ideas?

Post by oskog97 »

I'm not a ReactOS developer but I noticed a few potential issues in your report:

1. I don't see any debug log in your report.
ReactOS should be outputting quite a lot of debug messages on the serial port.

2. Have you tested on Windows XP/2003?
aaronk6
Posts: 4
Joined: Thu Aug 11, 2022 10:40 pm

Re: NGINX working on ReactOS, but gets stuck on HTTPS – any ideas?

Post by aaronk6 »

I eventually found out that this is actually a known issue, with an existing (unresolved) bug report:

https://jira.reactos.org/browse/CORE-14486

I resolved my bug report as duplicate.

For the time being, I was able to fix the issue by applying the following patch:

https://jira.reactos.org/secure/attachm ... _fix.patch
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 30 guests