Fix cert renewal 1181#1407
Open
SurbhiAgarwal1 wants to merge 1 commit intohyperledger:mainfrom
Open
Conversation
70899ca to
f506fa8
Compare
…er#1181 Signed-off-by: SurbhiAgarwal1 <agarwalsurbhi1807@gmail.com>
f506fa8 to
c5f953b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Description ( #1181)
Title
fix: resolve "malformed serial number" error during certificate renewal (#1181)Summary
This Pull Request resolves the "malformed serial number" certificate issue encountered during renewal in the
test-network. By ensuring that all existing MSP and TLS artifacts are cleared before re-enrollment, we preventfabric-ca-clientfrom attempting to use stale or mismatched local credentials for authentication.Problem Description
User reports and local testing confirmed that certificate renewal via
fabric-ca-clientoften fails if existing certificates are present in the local filesystem. The errorError: malformed serial numberoccurs during the TLS handshake or certificate parsing when the client tries to load existing artifacts that may no longer be valid or compatible with the current CA state.Implementation Details
New Script:
renewCerts.sh:mspandtlsdirectories.network.shIntegration:renewmode../network.sh renew.Error Handling:
registerEnroll.shlogic to gracefully handle cases where identities are already registered on the CA (Error Code 74), allowing the script to proceed to the crucial enrollment/renewal phase.Verification Steps
./network.sh up -ca -c mychannel./network.sh reneworganizations/peerOrganizations/...Fixes - ( Error: Failed to get client TLS config: Error parsing certificate: x509: malformed serial number #1181)