When checking replication status, ensure to pass SSL flag along to connections to the master as well.