Http/https ssl for backend

Hi, i ve got some issue with http/https. I switched on SSL on my website. Frontend works fine, but on backend I cant login to the backend office panel.

Firstly i had notification - ‘no public key could be generated. please inform your typo3 administrator to check the openssl settings.’. I set in LocalConfiguration.php file ‘loginSecurityLevel’ => ‘normal’ and then i got to the panel, but cant do anything, because there’ was no working module. In console i’ve got many mixed content error - request has been blocked; the content must be served over HTTPS. How can i manage with this? How to fix and change all http to https. Should i do this in database or another place?

What i also did and try:

I changed config.yaml baseURL to https, but it doesnt resolve case.

I tried with $GLOBALS[‘TYPO3_CONF_VARS’][‘BE’][‘lockSSL’] = ‘1’;

2 and 3 in AdditionalConfiguratin.php, but this cause redirect loop.

Futhermore I added directive in .htaccess:

RewriteCond “%{HTTP:X-ClientHTTPS}” 1

RewriteRule .* - [E=HTTPS:on]

Additional info:

My typo3 version: 9.5.8

apache server

.httaccess – standard 301 directive http -> https

SSL – free ets encrypt

web hosting provider regard, that’s everything looks ok, on his side

Be very gratefull for any hint 🙂.