I'm running Sandstorm for personal use/testing so I thought I'd set it up with a self-signed certificate. Unfortunately this too isn't really workable, because when you visit a grain you're at https://sandstorm.example.com/grain/grainID, while it's trying to load the app from https://randomstring.sandstorm.example.com.
At least in Firefox it won't let you accept the self-signed certificate, presumably because it's for a different subdomain?
I tried accepting the certificate by opening https://randomstring.sandstorm.example.com in a separate tab, but that gives "Error: Unauthorized [403]".
Arjan
You'll need to regenerate your self-signed certificate as a wildcard cert, e.g. with common name set to `*.sandstorm.example.com`. You should be able to do that. You'll also either need to set `sandstorm.example.com` as an alternative name on the certificate or change you BASE_URL to be in the wildcard, e.g. `www.sandstorm.example.com`.
We're working on making this easier.
-Kenton
I was using a self-signed certificate for *.example.com, so it should work for both sandstorm.example.com and randomstring.sandstorm.example.com
(I also tried your suggestion to be sure). I believe the problem has to do with browser security precautions, where you can accept a self-signed certificate on a regular page, but it does not give you the option to accept it when it's loading the subdomain in an iframe. I.e. where Firefox usually give you a screen with "Technical details" and "I understand the risks - Add Exception", for a grain it loads the outer page OK, but the iframe presents only the message "Technical details" and not the "Add Exception" option.
Unfortunately, wildcard certs only apply to one level of hostnames. `*.example.com` matches `foo.example.com` but does *not* match `bar.foo.example.com`.