Skip to content

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