connect smtp with gmail, ssl error

I want to open the emails from my server in gmail but they give me ssl errors, apply a custom ssl but I think it gives an error with the ssl that has the emails

there is a way to apply my ssl certificate to my emails?

Same issue with me, When i adding SMTP in gmail with Port 465 SSL error. Have you fix this issue, can you help me How i can use port 465 in gmail SMTP? Thanks