Hello,
I'm trying to update the web server SSL certificate for ArcGIS Server using ArcGIS API for Python.
I was able to do that for Portal for ArcGIS as shown below:
I was also able to import the certificate to ArcGIS Server as shown below:

However, I can't find any documentation about updating the Web Server SSL certificate for ArcGIS Server.
Please note that I tried the following:
I seem to have been able to update the Web server certificate, however, it doesn't seem to persist for some reason:

The result of the first loop is the changed certificate:

However, when the loop finishes, it seems to be reverted back to the previous certificate, as this is the result of the second loop:

Please note that I restarted the ArcGIS Server service.
Any help would be appreciated!