Can I use HTTPS client certificate authentication with HTTPS-triggered Google Cloud Functions?
I stand-alone node.js
, I would try something like this:
var https = require('https');
var options = {requestCert: true, rejectUnauthorized: true};
https.createServer(options, function (req, res) {
// ...
}).listen(1234);
But since Google Cloud Functions (presumably) controls the creation of the node.js
server, it is currently unclear to me how I could pass the required options.
Google offers documentation on how to use (OAuth 2.0) service accounts and access tokens for authentication, but I am interested in HTTPS client certificates, such as a web browser could also present.