[ https://issues.apache.org/jira/browse/PROTON-1088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105440#comment-15105440 ]
ASF GitHub Bot commented on PROTON-1088: ---------------------------------------- GitHub user ganeshmurthy opened a pull request: https://github.com/apache/qpid-proton/pull/61 PROTON-1088 - Added two functions pn_ssl_get_cert_fingerprint() and p… …n_ssl_get_remote_subject_subfield() to obtain certificate fingerprint and certificate subject subfields respectively You can merge this pull request into a Git repository by running: $ git pull https://github.com/ganeshmurthy/qpid-proton PROTON-1088-6 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/qpid-proton/pull/61.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #61 ---- commit 463cfd7ac5b531edb10f9f022bb18228fe21b64b Author: ganeshmurthy <gmur...@redhat.com> Date: 2016-01-14T14:50:16Z PROTON-1088 - Added two functions pn_ssl_get_cert_fingerprint() and pn_ssl_get_remote_subject_subfield() to obtain certificate fingerprint and certificate subject subfields respectively ---- > Add convenience functions to obtain the client certificate fingerprint, > subject subfields > ----------------------------------------------------------------------------------------- > > Key: PROTON-1088 > URL: https://issues.apache.org/jira/browse/PROTON-1088 > Project: Qpid Proton > Issue Type: Improvement > Components: proton-c > Affects Versions: 0.11.1 > Reporter: Ganesh Murthy > Assignee: Ganesh Murthy > Fix For: 0.12.0 > > > 1. Provide a convenience function which will return a an ssl certificate > fingerprint (a sha1 or sha256 hash of the certificate). > -- When you look go to a https site via a web browser, you can look at the > certificate fingerprint by clicking the View Certificate button on the > browser. Add a convenience function to proton which will return the char > array of octets. sha1 hashing produces a 20 octet hash and sha256 provides a > 32 octet hash. The function signature should approximately look like this - > void pn_ssl_get_fingerprint(pn_ssl_t \*ssl0, unsigned char \*md, const char* > digest_name) > 2. The subject field on the SSL cert has many subfields like - > C = ISO3166 two character country code > ST = state or province > L = Locality; generally means city > O = Organization - Company Name > OU = Organization Unit - division or unit > CN = CommonName - end entity name e.g. www.example.com > Provide convenience functions to obtain values of the above subfields. -- This message was sent by Atlassian JIRA (v6.3.4#6332)