Configure DSN (Use HTTPS and other Port)

If there is any way to configure DSN to be HTTPS instead of HTTP and use a different port rather than 9000 ?