So I’ve got Mailinabox running fine, with an unsigned certificate so far. Wanted to change that, so I purchased a certificate at Gandi.net. Downloaded both the intermediate and the certificate (a .crt file) itself. Then copied the contents of the certificate in a new file, in the same file copied the contents of the intermediate, directly below the certificate. Something like:
It sounds like you did everything right. The next thing would be to check that the CSR that you gave to Gandi was right. Can you paste the CSR? (It’s safe to share.)
openssl req -in request.csr -noout -text shows a modulus that starts 00:dc:01:3b:27:85:eb:34:54:60:fd:e3:f3:86:94.... Does that match either the private key or the certificate?
Hmm. I think the only way this could have happened is if the private key changed. Maybe check the dates on the files?
Anyway, yeah, you can replace the files in /home/user-data/ssl with all new things. Or delete them and rerun start.sh to re-create the private key and CSR (but then check that they match! ).
Ok, fixed it now. The whats_next now says, among other things:
box.fuess.nl
✓ SSL certificate is signed & valid.
I would expect then that if I connect to https://box.fuess.nl in the browser it would show me the correct certificate, but I still get a warning about a self-signed certificate, in both Safari and Firefox. Browser-cache was already flushed. My mail-client doesn’t complain about it anymore.