how to generate a self-signed certificate
From Sharkysoft Wiki
Lots of good info at
If you get the error message
- unable to write 'random state'
check to see whether you have a .rnd file in your home. If you do, delete it.