Skip to content

Conversation

@p0dalirius
Copy link
Contributor

No description provided.

@p0dalirius p0dalirius requested a review from Copilot November 14, 2025 14:32
@p0dalirius p0dalirius self-assigned this Nov 14, 2025
@p0dalirius p0dalirius added the bug Something isn't working label Nov 14, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a bug where the publicKey field was left nil when creating a new X509 certificate in NewX509Certificate(). The fix ensures the public key is properly initialized, and refactors several export methods to use getter methods for consistent field access.

  • Initializes the publicKey field in NewX509Certificate() to fix nil pointer issues
  • Refactors export methods to use GetRSAPrivateKey() and GetRSAPublicKey() getter methods
  • Adds proper error handling for key retrieval operations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@p0dalirius p0dalirius merged commit 90663d2 into main Nov 14, 2025
5 checks passed
@p0dalirius p0dalirius deleted the Fixed-nil-publicKey-in-cert-generated-by-NewX509Certificate() branch November 14, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants