Run zope server over https locally https://localhost:8080

I am working on some OAuth + OpenID implementation. The library I am using which is not supporting http url scheme, even in localhost.
Is there any way to run zope server over https in localhost? I have generated self-signed certificate for localhost and installed on root local trust certificate.

Use Apache/Nginx as front-end proxy and SSL endpoint or a tool like Ngrok as SSL endpoint.

-aj

Apache/Nginx as front-end proxy and SSL endpoint

This is good idea, but if I running Functional UnitTest with ZSERVER fixture (I have to) you know the port number is random.
Right now I am actually make some override methods to allow localhost with http (may be that's bad idea)
I will looking at Ngrok, thanks for sharing

The port is 55001, or set the port as an environment var.
See https://github.com/plone/plone.testing/blob/cc2f0633c08d223c1020c7a3dbf80ca7fda96cf3/src/plone/testing/z2.py#L977

1 Like

@jaroel thanks