Added a method to create self-signed end user certificates, and unit tests. This removes a dependence on a central certificate authority.
Commit after testing.