To setup SSL without using a plugin is simple. You must have SSL purchased from your host.
Step 1: Change website URL in settings from HTTP to https
Step 2: Add plugin Better Search Replace
In plugin search for your domain without http://domainname.com and replace it with https://domainname.com
Step 3: Add this code in .htaccess on top