Generating self-signed user certificates