webclient: generating self-signed certificate on-the-fly