I've been using Rust-lang Rocket v0.5-rc for the past couple of weeks in order to create my web application. In order to get my SSL certificate and a domain name, I've been using NO-IP free services.
I generated a 2048 bit RSA key with OpenSSL, converted it to PKCS-8, created a CSR (using the pre-made key) and uploaded it to NO-IP. After a while, I downloaded the cert chain and configured Rocket.toml as described:
[global]
port = 443
address = "0.0.0.0"
[default.tls]
certs = "certs.pem"
key = "key.key"
However, when I try to connect via firefox to the website I get either a "Connection Lost" or a "SSL Malformed" warning.
Server output:
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target\debug\rocket_project.exe`
Configured for debug.
>> address: 0.0.0.0
>> port: 443
>> workers: 8
>> ident: Rocket
>> keep-alive: 5s
>> limits: bytes = 8KiB, data-form = 2MiB, file = 1MiB, form = 32KiB, json = 1MiB, msgpack = 1MiB, string = 8KiB
>> tls: enabled
>> temp dir: C:\Users\talhk\AppData\Local\Temp\
>> log level: normal
>> cli colors: true
>> shutdown: ctrlc = true, force = true, grace = 2s, mercy = 3s
Warning: found set deprecated profile `development`
>> profile was replaced by `debug`
Warning: found set deprecated profile `production`
>> profile was replaced by `release`
Routes:
>> (index) GET /
>> (get_file_external) GET /<file..>
Fairings:
>> Shield (liftoff, response, singleton)
Shield:
>> Permissions-Policy: interest-cohort=()
>> X-Content-Type-Options: nosniff
>> X-Frame-Options: SAMEORIGIN
Rocket has launched from https://0.0.0.0:443
Error: connection accept error: received corrupt message
Error: optimistically retrying now
Warning: Received SIGINT. Requesting shutdown.
Received shutdown request. Waiting for pending I/O...
Additional Info: When I used Wireshark to find out what's happening it described it as TCP (not TLS) communication.
Any ideas?