简体   繁体   中英

How to get the client certificate or more precisely the client DN in GRPC++?

I have clearly understood how to establish a two-way authenticated SSL communication in GRPC++,but now I desire to obtain the way to get SSL client DN in the established TLS communication to make a further identity status classification. Thanks if you have some suggestions.

You can get the peer certificate chain from gRPC AuthContext, under the property name (GRPC_X509_PEM_CERT_CHAIN_PROPERTY_NAME).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM