I extended the sharepoint 2013 site (`http://sharepoint.mydomain.com`) to https(on port 443) (`https://sharepointdifferent.mydomain.com`) with SSL enablement. Created the self signed server certificate from IIS and imported the same certificate in trusted root certification authorities and binded the same certificate for the extended site in IIS Manager under "Bindings". But on accessing the extended site I am getting the error

> An operation failed because the following certificate has validation
> errors:  Subject Name: CN=XXXXXXXXXXXXXX.XXXX.net (server details)
> Issuer Name: CN=XXXXXXXXXXXXXX.XXXX.net (server details) Thumbprint:
> XXXXXXXXXXXXXXXX......  Errors:   SSL policy errors have been
> encountered.  Error code '0x2

Please help.