Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support exporting pem from Certificate #282

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

szclsya
Copy link

@szclsya szclsya commented Nov 6, 2023

Nothing fancy. Add support to generate PEM formatted certificate from Certificate, in addition to the already-supported DER format.

@@ -225,6 +225,10 @@ impl Certificate {
pub fn to_der(&self) -> Result<Vec<u8>, Error> {
Ok(self.0.to_der())
}

pub fn to_pem(&self) -> Result<Vec<u8>, Error> {
panic!("Not implemented on macOS/iOS");
Copy link
Owner

Choose a reason for hiding this comment

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

This'll need to be implemented.

Copy link
Author

Choose a reason for hiding this comment

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

Seems that there's currently no implementation in the underlying rust-security-framework crate. I'll see if I can do anything there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants