API review - Certificate Signing Request interfaces and class signatures #3502
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for certificate signing requests (CSR) to enable X.509 certificate renewal for devices in the Azure IoT Hub device SDK. The main changes include new request and response types, updates to the API version, and the addition of a new asynchronous method for sending certificate signing requests. The implementation is currently stubbed out in the MQTT transport handler, with validation and error handling in place.
Certificate Signing Request Support
CertificateSigningRequest,CertificateSigningResponse, andCertificateAcceptedResponsefor representing the CSR protocol request and responses. Also addedCredentialErrorResponseandCredentialOperationExceptionfor error handling. [1] [2] [3] [4] [5]ClientApiVersionHelper.csto2025-08-01-previewto enable CSR support.SDK API Changes
SendCertificateSigningRequestAsynctoDeviceClientandInternalClientwith full documentation, validation, and error handling for sending CSRs and receiving certificates. [1] [2]IDelegatingHandler,DefaultDelegatingHandler) to support the new CSR method. [1] [2]Transport Layer Updates
NotSupportedExceptionfor CSR methods in AMQP and HTTP transport handlers to restrict the operation to MQTT only. [1] [2]These changes lay the foundation for certificate renewal via MQTT and provide robust error handling and validation for the new credential management workflow.