Import patrons background task not working in Destiny after deploying SSL

After applying SSL to our Follet's Destiny (library management system) server, the background task to import and update patron from csv files stop working. We spent several days trying to figure out why but not luck. Then accidentally I fixed it simply by these steps:

Assuming my Destiny server is at my.destiny.com

1. Change the C:\Follett\FSC-Destiny\fsc\bin\config.properties:

CONNECT_URL=
DESTINY_HOST=my.destiny.com
JAVA_NAMING_PROVIDER_URL=jnp://${DESTINY_HOST}:${JNDI_PORT}
TOMCAT_BASE_URI=https://${DESTINY_HOST}:443

2. Run  C:\Follett\FSC-Destiny\fsc\bin\config.bat

3. Add this line to the C:\\WINDOWS\System32\drivers\etc\hosts file of the server:

127.0.0.1 my.destiny.com

Save and exit

4. Login to Destiny using the administrator account, go to Setup:

https://my.destiny.com/district/servlet/presentdistrictoptionsform.do

Scroll down to the bottom and click Download.

5. Extract everything and copy them to C:\Follett\FSC-Destiny\fsc\automate\

6. Restart Destiny from the Windows's Services program.