Skip to content
New issue

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

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

Already on GitHub? # to your account

Validate chosen PEM or JKS file is actually a PEM or JKS file #1111

Open
jlrobins opened this issue Mar 3, 2025 · 1 comment
Open

Validate chosen PEM or JKS file is actually a PEM or JKS file #1111

jlrobins opened this issue Mar 3, 2025 · 1 comment
Assignees

Comments

@jlrobins
Copy link
Contributor

jlrobins commented Mar 3, 2025

We could do a little file validation here based on the file type chosen and sniffing of contents through basic heuristics to help ensure the user has chosen not obviously definitely wrong files based on either JKS or PEM formats.

@noeldevelops could do the form -> extension host messaging easy enough, and a @jlrobins or @shouples could provide the implementation functions for extension-side validateSSLFileFormat(type: PEMorJKSEnum, path: Path): void or Error-with-message-to-show-to-user-raised function.

@rohitsanj
Copy link
Contributor

We also have PKCS12 in case we wanted to validate that too.

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

No branches or pull requests

3 participants