Open biningo opened 1 month ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign zc2638 after the PR has been reviewed.
You can assign the PR to them by writing /assign @zc2638
in a comment when ready.
The full list of commands accepted by this bot can be found here.
Welcome @biningo! It looks like this is your first PR to kubeedge/kubeedge 🎉
Can you explain in detail under what circumstances you need to parse other types of private keys? If we use ECPrivateKey by default, seems we don't need to parse other types?
Hi @wbc6080
If the CA certificate does not exist in the cloud, cloudcore will automatically generate the CA private key and CA certificate. As you said, the auto-generated private key is EC format.
KubeEdge supports users to generate CA private key and CA certificate by themselves, if users use PKCS1 format or PKCS8 format private key, it will fail to parse. https://github.com/kubeedge/kubeedge/blob/58bf767f8b763f9e77cf237b9488adfcc8b601be/cloud/pkg/cloudhub/servers/httpserver/server.go#L265-L301
What type of PR is this? /kind feature
What this PR does / why we need it: PKCS8 private key cannot be parsed
Which issue(s) this PR fixes:
Fixes #5599
Special notes for your reviewer:
Does this PR introduce a user-facing change?: