I tried using the "official Admin SSL plugin" but that didn't seem to work.
I can set the WordPress url to https://maindomain.com/~user/wpdirectory/
and define force ssl login true or force ssl admin true.
But then any media uploaded winds up being loaded from https://maindomain.com/~user/ etc..
Anybody have any ideas or a working solution?