Beste way to reload certificate files

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
Normal user
Normal user
Posts: 69
Joined: 2018-11-23 14:42
Location: Germany

Beste way to reload certificate files

Post by Virinum » 2018-11-23 15:27


My certificates for hMailServer get renewed automatically.
Because hMailServer doesn't recognise the new certificate files by itself, I have to say hMailServer to reload the files via script.

My first way was to restart the hMailServer service:

Code: Select all

net stop "hMailServer"
net start "hMailServer"
Then I found this post: viewtopic.php?p=195544#p195544
Much better than restarting the whole service but it didn't seem to be the right way for me.

In the next step I found this way, which is working fine:

Code: Select all

Const HMSADMINUSER = "Administrator"

Set oApp = CreateObject("hMailServer.Application")

I also tried using

Code: Select all

But this didn't initiate a reload of the certification files.

Now my question is: Is there a better way for reloading the files than "oApp.Reinitialize"? I just want to reload the certificate files, not the whole settings.

User avatar
Posts: 20788
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Beste way to reload certificate files

Post by mattg » 2018-11-23 23:47

I think because the certificates are cached, reinitialise is probably correct

I actually find that I need to restart my hMailserver machine every few weeks anyway
Just 'cause I link to a page and say little else doesn't mean I am not being nice.

Post Reply