The certificate '%1!s!' is not valid for endpoint authentication. The certificate must have a private key encrypted with ...

The certificate '%1!s!' is not valid for endpoint authentication. The certificate must have a private key encrypted with the database master key and current UTC date has to be between the certificate start date and the certificate expiration date.