apple / swift-crypto

Open-source implementation of a substantial portion of the API of Apple CryptoKit suitable for use on Linux platforms.
https://apple.github.io/swift-crypto
Apache License 2.0
1.47k stars 165 forks source link

New API Proposal: X.509 Certificate Support #189

Closed Craz1k0ek closed 1 year ago

Craz1k0ek commented 1 year ago

New API Proposal: X.509 Certificate Support

Motivation:

A big part of cryptography and security for multiple internet protocols is the X.509 standard, defining public key certificate formats. Not having the possibility to create or read certificates is a real bummer.

It would be a great addition:

Most of the core components to support X.509 certificates are already (partially) implemented:

I would highly recommend also adding the certificate signing request (CSR), part of the PKCS#10 spec, to make the client certificate authentication and identities accessible more easily.

Importance:

X.509 is of great importance in cryptography:

Lukasa commented 1 year ago

Is your use-case solved by swift-certificates?

Craz1k0ek commented 1 year ago

It sure does, that's exactly what I was after. Can't believe I missed that, thanks a lot!