- Edited
If your WebFaction account is now closed then the automatic migration procedures below are not going to work for you. You'll need to add your certificates manually via your Opalstack dashboard.
When you migrate a site from WebFaction to Opalstack your SSL certificates are not migrated with it.
Opalstack can't issue a new certificate for you until your domains are pointed at us, so you'll need your old certificates to ensure that you have no initial HTTPS problems when you do point your domains.
You can add certificates manually but if you have a lot of them and would like to migrate them automatically then here's how:
- Create an Opalstack API token if you don't have one already.
- Log in to a SSH session on your Opalstack server.
- Download migrate_wf_certs.py to your server:
wget https://gist.githubusercontent.com/defulmere/bc89af42f9ff82836fbb96789b208946/raw/39d954e51ac2f51b95de1e3bc642e1a317e42970/migrate_wf_certs.py
Edit the script to set the
WF_USER
,WF_PASS
,WF_SERVER
, andOPAL_TOKEN
variables as directed by the comments in the script.Save and run the script:
python3 migrate_wf_certs.py
- The script will query WebFaction's API for your certificate and then add them to your Opalstack dashboard via the Opalstack API.
Once it's done, you can then assign the migrated certificates to your sites.
Note that this will not migrate managed Let's Encrypt certificates from WebFaction - you can still duplicate those on Opalstack as manual certificates by getting the certificate and key values from your ~/certificates
directory at WebFaction.
Now go forth, migrate your certificates, and secure all the things!