How to set up MariaDB Master-Slave replication with SSL on Ubuntu Linux

How do I setup Master-slave data replication using MariaDB server on Ubuntu Linux 16.04 LTS server? How do I encrypt replication traffic so that the data get encrypted in transit, protecting my data and users from snooping? Master-slave data replication allows you to copy databases to multiple MariaDB servers. This is useful for backup, data recovery, load balancing and much more. In this tutorial, you will learn how to configure SSL-protected MariaDB replication between a master and slave server.