How to add SSL and HTTPS in WordPress?


In this article, you will find out what have to be done to successfully add SSL and HTTPS onto your WordPress website. At first, keep in mind the fact that SSL is needed to correctly implement HTTPS, so remember about the order.


First of all, we are ought to provide ourselves SSL certificate and install it correctly on the server. This actions provide us safety and prevent from false public key given during the install of SSL, so keep this in mind and always pay attention to companies’ honesty while choosing your certificate supplier.

Another step is to generate the certificate, to which you need a unique IP address. Login onto your WP account by SSH and type down the command:

  • openssl genrsa -des3 -out name_of_the_domain.key 2048

This will provide you a public code. You will also be asked to provide yourself a password, remember it – it is going to be useful later on.


Now let us generate CSR file to report our certificate and the command which we need to use is:

  • openssl req -new -key name_of-the_domain.key -out name_of_the_domain.csr

After implementing this bidding be careful, it is now a time to fill in few information shortly visible on the certificate. The most important ones are:

  • Common Name (name of the domain; if your certificate supports subdomaina, add “ *. “ sign before the name e.g. * )
  • Country Name (double sign symbol)
  • Organization (name of the company or organization)


Since 2.6 version, WordPress obtain built-in SSL coding support, so there is no need to even take an usage of plugin. All you have to do is open wp-config.php and write the command:

  • define(‘FORCE_SSL_ADMIN’, true);

From now on you have turned on SSL coding on your WordPress website.


What exactly is it? HTTPS, or in other words encryption method that secures the connection between users’ browser and your server. Thanks to that you prevent your connection from being “overheard” .

First step is to enter the administrative panel on our WP account and check URL addresses. Both WP and domain URLs should be changed from “” into “” After clicking in any link, you will be redirected into coded website, bonded by SSL certificate, which you have already took care of before :)


This is all to keep feeling safe with our dotcom content. We advise to take the biggest care that is possible in order to increase the value and benefits of your WordPress website.