Further sanitisation of the self-signed certificate

Added "-sha256 -utf8" to work in future browsers, removed unneeded stuff
from subject since CN is the only thing that matters in self-signed
certificates.