Foreman-maintain restore self signed certificate

Hi community

foreman version 3.6.2

On foreman server i’ve run the command

foreman-maintain backup offline -s -y --features all --include-db-dumps

at this point i’ve reverted the foreman VM with a snapshot, the state of foreman in this snapshot is up and running.
Imported via ssh the backup i try to restore it whit command "foreman-maintain restore -y ".
At “Run installer reset” step raise an error when try to register foreman host into foreman:

Run installer reset: 
- Installer reset                                                     [FAIL]    
Failed executing yes | foreman-installer -v --reset-data --foreman-proxy-register-in-foreman false , exit status 6:
 2023-09-20 09:18:55 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-09-20 09:19:01 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-09-20 09:19:01 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
Are you sure you want to continue? This will drop the databases, reset all configurations that you have made and bring all application data back to a fresh install. [y/n]
Package versions are locked. Continuing with unlock.
2023-09-20 09:20:08 [NOTICE] [pre] Dropping foreman database!
2023-09-20 09:20:10 [NOTICE] [configure] Starting system configuration.
2023-09-20 09:20:20 [NOTICE] [configure] 250 configuration steps out of 1346 steps complete.
2023-09-20 09:20:20 [NOTICE] [configure] 500 configuration steps out of 1350 steps complete.
2023-09-20 09:20:20 [NOTICE] [configure] 750 configuration steps out of 1479 steps complete.
2023-09-20 09:21:06 [NOTICE] [configure] 1000 configuration steps out of 1479 steps complete.
2023-09-20 09:21:46 [NOTICE] [configure] 1250 configuration steps out of 1479 steps complete.
2023-09-20 09:22:07 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-foremanic.kvm.internal]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://foremanic.kvm.internal/api/v2/hosts?search=name%3D%22foremanic.kvm.internal%22
2023-09-20 09:22:07 [ERROR ] [configure] Wrapped exception:
2023-09-20 09:22:07 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
2023-09-20 09:22:09 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.

  The full log is at /var/log/foreman-installer/foreman.log

i also tried to specify the certificates directory via foreman-maintain config file whitout success.

Did I forget something?

thanks in advance