Michael Lucas¹ :flan_molotov: on Nostr: Playing with ncat and TLS. Command line is MUCH nicer than openssl s_client, but: $ ...
Playing with ncat and TLS. Command line is MUCH nicer than openssl s_client, but:
$ ncat -C --ssl mwl.io 443
GET / mwl.io HTTP/1.1
HTTP/1.1 400 Bad Request
No chance to enter the Host header, won't accept \n.
Lots of questions, lots of advice to use openssl s_client.
So, I guess this isn't a thing? Sigh.
Published at
2025-05-26 17:13:25Event JSON
{
"id": "a629e928c6acac3b6d181cfd58db97c6f7f59490dccc073440d3c06a8cfc3a3d",
"pubkey": "967c6f3bb809d3ae791381503ec70d0da6a7ec7366f83b7c046e72d0a0748e98",
"created_at": 1748279605,
"kind": 1,
"tags": [
[
"proxy",
"https://io.mwl.io/users/mwl/statuses/114575252237139403",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Playing with ncat and TLS. Command line is MUCH nicer than openssl s_client, but:\n\n$ ncat -C --ssl mwl.io 443\nGET / mwl.io HTTP/1.1\nHTTP/1.1 400 Bad Request\n\nNo chance to enter the Host header, won't accept \\n.\n\nLots of questions, lots of advice to use openssl s_client.\n\nSo, I guess this isn't a thing? Sigh.",
"sig": "9015cab03cd89086e24c4629a3bce95d4810fd4b36e20b179c57ab45e257985685e5636827a5ac407e7d4b28ca6be9edf446d5871b9c092178b1523ee48daa9b"
}