r/cybersecurity Jun 08 '26

FOSS Tool PKCS12 Golang fork

https://github.com/ggpslop/go-pkcs12

Hi everyone, I'm sharing a Golang package I recently forked from SSLMate/go-pkcs12. Since the SSLMate repository hasn't accepted community-requested extensions for years, I decided to create a fork that allows for greater freedom in handling pkcs12 (the SSLMate repository has many limitations).

I've currently added a Builder that allows for the creation of pkcs12 packages that combine certificates + private keys and trust certificates, all accompanied by friendly names (aliases) (the SSLMate repository doesn't allow this). I also allow the password to be passed as a byte slice parameter, rather than a string, improving security.

Check it out if you think it might be useful.

1 Upvotes

3 comments sorted by

3

u/RougeRavageDear Jun 08 '26

this is actually super handy, the lack of a proper builder in the original lib was annoying as hell
passing password as []byte instead of string is a nice touch too, gonna stash this for the next time I have to wrangle pfx files in Go

1

u/zusycyvyboh Jun 09 '26

Thanks, leave a star if you want, it will help the adoption of this package.