Commit Diff


commit - 8b6c42b87f06e4c8350db13f1589e55b03a11b86
commit + a1b4a98eef4a289ebaa1607d1c562d25bcd5b224
blob - /dev/null
blob + 80f65a0f784cf09781c9695dff80daa6571fe390 (mode 644)
--- /dev/null
+++ wiki.d/Netcat.Daemon
@@ -0,0 +1,16 @@
+version=pmwiki-2.3.20 ordered=1 urlencoded=1
+agent=w3m/0.5.3+git20230121
+author=jrmu
+charset=UTF-8
+csum=
+ctime=1731808984
+host=198.251.82.194
+name=Netcat.Daemon
+rev=1
+targets=Acme-client.Configure
+text=(:title Troubleshoot clients with netcat:)%0a%0anetcat can be used as a server daemon to troubleshoot clients.%0a%0a!! Web server%0a%0a[[https://man.openbsd.org/nc.1|netcat(1)]] can be used to mimic a web server by%0arunning the following command:%0a%0a# nc -c -C /etc/ssl/example.com.crt  -K /etc/ssl/private/example.com.key -l 443%0a%0aThe public and private keys example.com.{crt,key} should be first requested%0ausing [[acme-client/configure|acme-client]].%0a%0aThen, use your web browser to visit the webpage @@https://example.com@@ to see the%0aclient's request:%0a%0a[@%0aGET / HTTP/1.1%0aHost: example.com%0aUser-Agent: Mozilla/5.0 (X11; rv:128.0) Gecko/20100101 Firefox/128.0%0aAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8%0aAccept-Language: en-US,en;q=0.5%0aAccept-Encoding: gzip, deflate, br, zstd%0aDNT: 1%0aConnection: keep-alive%0aUpgrade-Insecure-Requests: 1%0aSec-Fetch-Dest: document%0aSec-Fetch-Mode: navigate%0aSec-Fetch-Site: none%0aSec-Fetch-User: ?1%0aIf-Modified-Since: Tue, 12 Nov 2024 06:15:19 GMT%0aPriority: u=0, i%0a@]%0a
+time=1731808984
+title=Troubleshoot clients with netcat
+author:1731808984=jrmu
+diff:1731808984:1731808984:=1,34d0%0a%3c (:title Troubleshoot clients with netcat:)%0a%3c %0a%3c netcat can be used as a server daemon to troubleshoot clients.%0a%3c %0a%3c !! Web server%0a%3c %0a%3c [[https://man.openbsd.org/nc.1|netcat(1)]] can be used to mimic a web server by%0a%3c running the following command:%0a%3c %0a%3c # nc -c -C /etc/ssl/example.com.crt  -K /etc/ssl/private/example.com.key -l 443%0a%3c %0a%3c The public and private keys example.com.{crt,key} should be first requested%0a%3c using [[acme-client/configure|acme-client]].%0a%3c %0a%3c Then, use your web browser to visit the webpage @@https://example.com@@ to see the%0a%3c client's request:%0a%3c %0a%3c [@%0a%3c GET / HTTP/1.1%0a%3c Host: example.com%0a%3c User-Agent: Mozilla/5.0 (X11; rv:128.0) Gecko/20100101 Firefox/128.0%0a%3c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/png,image/svg+xml,*/*;q=0.8%0a%3c Accept-Language: en-US,en;q=0.5%0a%3c Accept-Encoding: gzip, deflate, br, zstd%0a%3c DNT: 1%0a%3c Connection: keep-alive%0a%3c Upgrade-Insecure-Requests: 1%0a%3c Sec-Fetch-Dest: document%0a%3c Sec-Fetch-Mode: navigate%0a%3c Sec-Fetch-Site: none%0a%3c Sec-Fetch-User: ?1%0a%3c If-Modified-Since: Tue, 12 Nov 2024 06:15:19 GMT%0a%3c Priority: u=0, i%0a%3c @]%0a
+host:1731808984=198.251.82.194