I’m playing with workers to test connectivity to things. Using the fetch command I can get HTML (or JSON etc.) from a remote website. E.g. one of the examples has the worker getting https://workers-tooling.cf/demos/static/html
One of the things I want to do is view is the TLS certificate of the remote host in the connection that got that data.
In node.js I can do this by 'require’ing the tls library and then doing some tweaking of callbacks from getting the data, but you can’t require tls or other node fundamentals in this environment.
With cloudflare workers I need to use the fetch command but the cloudflare response object doesn’t seem to have the hooks to view the TLS certificate. In the request.cf object this stuff is present but that’s for the request to the worker as I understand it.
Am I missing/misunderstanding something in the documentation? or is this not possible?
Thanks in advance