Self-signed Certificate

Self-Signed Certificate

You can start goshs using a self-signed certificate with -s -ss.

$ goshs -s -ss
INFO   [2024-07-04 18:01:46] Download embedded file at: /example.txt?embedded 
INFO   [2024-07-04 18:01:46] Serving on interface lo bound to 127.0.0.1:8000 
INFO   [2024-07-04 18:01:46] Serving on interface eth0 bound to 10.137.0.27:8000 
INFO   [2024-07-04 18:01:46] Serving HTTPS from /home/user with ssl enabled and self-signed certificate 
WARNING[2024-07-04 18:01:46] Be sure to check the fingerprint of certificate 
INFO   [2024-07-04 18:01:46] SHA-256 Fingerprint: 88 12 82 A4 6D 7F B1 D0 37 9D 78 78 4A B1 EC DC 97 BF 8D AB FB 8A 15 06 92 B2 1B 90 32 96 73 D4  
INFO   [2024-07-04 18:01:46] SHA-1   Fingerprint: C0 62 FD 51 D3 B8 BB B5 64 DD EA D1 01 25 77 74 EF E0 6E 79  

goshs is no listening on port 8000 and you can use https://ip:8000 to initiate a secure connection.