@Gehova yes it is a self signed certificate.
Is it because of that? If I pass it the other one will it work?