Today I tried restoring a bare metal restore for testing purposes. I took a full backup from my production server and restored it (USB) via
restore-config and restore-data
This worked, but I couldn’t get the web-admin page to run. Also IMAP and SMTP weren’t listening. I suspected my custom signed certificates. I installed them (didn’t include them in config-backup earlier), but still the services didn’t come up.
It turns out I had to re-run
# db configuration setprop pki CrtFile '/etc/e-smith/templates.metadata/etc/pki/tls/certs/mysignedcert.crt # db configuration setprop pki ChainFile '/etc/e-smith/templates.metadata/etc/pki/tls/certs/mysignedcert.ca-bundle.crt # signal-event certificate-update
Then (I rebooted the testserver) everything came up as expected. Don’t know if these steps will automatically be taken when I include the certs in config-backup and restore that, but if not, theses steps should be added to the docs about restoring backups I think.