Assuming everything was the same on each attempt, the fact you got a connection OK twice would suggest to me that your connection details & certificate are OK.
Try the suggestions from
@OliverA and
@Erel in posts
#2 &
#3 of the thread I linked to.
Updating to the latest version can't harm as well.