Craig Daters wrote to All <=-
...but could not get Let's Encrypt to work either. So I then attempted
to get a SSL cert installed like I would normally do when I set up a regular website, but I had issues there as well. I tried to follow the documentation found at:
https://wiki.synchro.net/module:certtool
...so, through some trial and error I was able to get my cert
installed, but I want to confirm whether or not this was proper or if there was a better way to set this up? So I came up with the following documation for myself in case I need to redo my setup at any time:
Step 1: Generate a Certificate Signing Request (CSR)
I ran the following command to generate a CSR and private key using Synchronet's certtool.js:
/sbbs/exec/jsexec /sbbs/exec/certtool.js --csr --domain mysticalrealmbbs.com --domain www.mysticalrealmbbs.com > /sbbs/csr.pem
- This created a CSR at /sbbs/csr.pem. (perhaps I should have stuck it
in /sbbs/ctrl/csr.pem?) - It also generated a private key saved as /sbbs/ctrl/cryptlib.key.
Step 2: Submit CSR to Namecheap
1. I then went into my Namecheap account, activated my SSL.
2. I was prompted to submit the contents of /sbbs/csr.pem to generate
my PositiveSSL certificate. 3. After verification (using the cname method), Namecheap provided two files:
- mysticalrealmbbs_com.crt (your SSL certificate)
- mysticalrealmbbs_com.ca-bundle (intermediate certificate chain)
Step 3: Combine Certificate and CA Bundle
I combined my certificate and bundle into a single file:
cat mysticalrealmbbs_com.crt mysticalrealmbbs_com.ca-bundle > /sbbs/ctrl/bbs.crt
This is the full certificate chain that I surmise Synchronet is
expecting.
Step 4: Prepare the Private Key
- Why not use certtool.js --import?
- This method failed to create expected .crt or .cert files during testing.
- The key format generated by Cryptlib may be incompatible with
OpenSSL tools, but is accepted by Synchronet directly.
- Verifying key and cert match (optional):
If needed, you can check that your private key and cert match using OpenSSL (only works with compatible key formats):
openssl rsa -in /sbbs/ctrl/bbs.key -modulus -noout | sha256sum
openssl x509 -in /sbbs/ctrl/bbs.crt -modulus -noout | sha256sum
If the hashes match, the key and cert pair correctly. But I beleve
that certtool.js is using a different format to generte the key.
Sysop: | xorek |
---|---|
Location: | Los Angeles, California |
Users: | 2 |
Nodes: | 4 (0 / 4) |
Uptime: | 01:26:50 |
Calls: | 1 |
Calls today: | 1 |
Files: | 791 |
U/L today: |
1,264 files (243M bytes) |
D/L today: |
220 files (8,192P bytes) |
Messages: | 2,577 |