WP-admin redirects to login after adding SSL certificate

Go to your admin area, general settings, and update your “WordPress Address (URL)” and “Site Address (URL)” field value with https.
and then update your permalinks setting, by simply click on “Save Changes” button.

In case if you are not able to login to your admin area also, do this changes directly in your database.
To update directly in database open your wp_options table, search for option_name = “siteurl” and changes its option_value with your https URL.

Hope this will help you.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)