You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "massakam (via GitHub)" <gi...@apache.org> on 2024/12/18 09:02:52 UTC

[PR] [fix] Fix issue where cert chain is not taken into account in mTLS authentication [pulsar-client-cpp]

massakam opened a new pull request, #467:
URL: https://github.com/apache/pulsar-client-cpp/pull/467

   ### Motivation
   
   The C++ client has the same mTLS authentication issue as https://github.com/apache/pulsar/pull/23644. That is, if a client's certificate is not directly signed by a root CA, but is signed by an intermediate CA, mTLS authentication will fail.
   
   ### Modifications
   
   - When loading a client cert, use [ssl::context::use_certificate_chain_file](https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/reference/ssl__context/use_certificate_chain_file.html) instead of [ssl::context::use_certificate_file](https://www.boost.org/doc/libs/1_87_0/doc/html/boost_asio/reference/ssl__context/use_certificate_file.html).
   - Added a test to check whether a PEM file containing a client cert and intermediate CA cert can be loaded and successfully connected to a broker. When issuing the intermediate CA cert, I did not know the private key of the root CA, so I reissued the root CA cert.
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc-not-needed`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [fix] Fix issue where cert chain is not taken into account in mTLS authentication [pulsar-client-cpp]

Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower merged PR #467:
URL: https://github.com/apache/pulsar-client-cpp/pull/467


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [fix] Fix issue where cert chain is not taken into account in mTLS authentication [pulsar-client-cpp]

Posted by "BewareMyPower (via GitHub)" <gi...@apache.org>.
BewareMyPower commented on PR #467:
URL: https://github.com/apache/pulsar-client-cpp/pull/467#issuecomment-2552906451

   3.7.0 is currently blocked at the macOS release process, so I think it can be included in 3.7.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org