Fix csr generation, fix nginx config generation