Re: Unable to figure out how to create ssl.cert
By: Digital Man to Sam Alexander on Mon Jul 07 2025 10:34 am
You'd mentioned the ssl.cert should've been created automatically, but I didn't have it after I built SBBS.
The ctrl/cryptlib.key (private key) and ctrl/cert.ssl (self-signed cert) files are automatically created when you *run* (not build) SBBS. Do you have the cryptlib.key file? Note: If you
change your system password, these files have to be recreated.
I don't have /sbbs/ctrl/ssl.cert even after stopping and restarting SBBS, but I do have /sbbs/ctrl/cryptlib.key. I get these often in my sbbs logs.
7/7 20:13:52 mail Failed to open/read TLS certificate: /sbbs/ctrl/ssl.cert
Also I'm trying to use letsyncrypt, and trying to generate a new key: /sbbs/exec/jsexec letsyncrypt --new-key
I see in the logs where Let's Encrypt tries to read into the web server and pull out the file for authenticate, but the file doesn't exist. I have /sbbs/web/root/.well-known/acme-challenge/ but apparently the js isn't creating the file for Let's Encrypt to find.
7/7 20:50:50 web 0011 HTTP [23.178.112.213] Connection accepted on 192.168.4.109 port 80 from port 37161
7/7 20:50:50 web 0011 HTTP [23.178.112.213] Request 1: GET /.well-known/acme-challenge/b1NbeFUniIxhs2GGS_64fM91UKqr2fgDsgmRwJLEgaU HTTP/1.1
7/7 20:50:50 web 0011 HTTP [23.178.112.213] User-Agent: Mozilla/5.0 (compatible; Let's Encrypt validation server; +
https://www.letsencrypt.org)
7/7 20:50:50 web 0011 HTTP [23.178.112.213] !ERROR: 404 Not Found (line 4031) request: /.well-known/acme-challenge/b1NbeFUniIxhs2GGS_64fM91UKqr2fgDsgmRwJLEgaU
7/7 20:50:51 web 0011 HTTP [23.178.112.213] Session thread terminated after 1 requests (0 clients and 2 threads remain, 27 served, 6 concurrently)
For this the script fails:
JSexec v3.21a-Linux master/40daa513e - Execute Synchronet JavaScript Module Compiled Jul 03 2025 19:17 with GCC 13.3.0
Loading configuration files from /sbbs/ctrl
JavaScript-C 1.8.5 2011-03-31
JavaScript: Creating runtime: 167772160 bytes
Reading script from /sbbs/exec/letsyncrypt.js
/sbbs/exec/letsyncrypt.js compiled in 0.00 seconds
!JavaScript /sbbs/exec/load/acmev2.js line 307: Error: keyChange did not return 200
/sbbs/exec/letsyncrypt.js executed in 1.73 seconds
!Module (letsyncrypt) set exit_code: 1
JavaScript: Destroying context
JavaScript: Destroying runtime
Returning error code: 1
So either route i'm not having much luck getting the certs setup for email. I even ran chmod 775 on /.well-known/acme-challenge folders which I'm running the jsexec as my sbbs user, owner of the sbbs folder, so I don't think it's a permissions thing. Thanks for any advise.
---
� Synchronet � -==[ Totally Nerd BBS ]==- (Work in Progress) - totallynerd.com
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)