turned the cert define into selfsignedcert