I've looked everywhere that I can think of but not finding a method to get
the client certificate that a client is using to connect via SSL.
The client code connects using ssl channel credentials like this:
creds = grpc.ssl_channel_credentials(
root_certificates=open('certs/ca_cert.pem').read(),
certificate_chain=open('certs/test_client_full.pem').read(),
private_key=open('certs/test_client_privkey.pem').read()
)
Now how do I access the public key (client certificate) from the server?
I've examined what's available to me in the servicer context, in the
request handler, in the metadata but there's been nothing.
My use case here is that I want to validate that the client certificate
belongs to an entity using a hash of the cert.
Perhaps this is not possible using grpc-python?
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/00c8d73f-65b3-41e7-bc09-dd1d0d74ac33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.