value does not fall within the expected range. certificate.GetCertHash() I want to create a site with a certificate I use this to generate a certificate: