generating self-signed cert and copying it over