Closed Andrewangeta closed 6 years ago
Parsing a PEM-encoded private key is not that simple, as the private key data is wrapped in an ASN.1 structure. But sure, having this feature would be definitely helpful.
@vzsg Is that you making an offer 🌚
I've already implemented it with OpenSSL a few times for Vapor 2, but I don't have the slightest idea how to do it with AppleTLS 🤥
So this is just me acting smarta$$y.
The SwiftNIO stuff may change things, looks like it brings back OpenSSL
Yeah, their support module pulls in LibreSSL on macOS and regular OpenSSL on Linux. That's not necessarily a bad thing :)
This will be fixed in RC.2. Thanks @Andrewangeta
A convenience parser to make a pub/priv keyhole digestible by RSA alg.
Essentially transforming this
"-----BEGIN PRIVATE KEY-----\nQklCTElPR1JBUEhZ==\n-----END PRIVATE KEY-----\n"
Into this
QklCTElPR1JBUEhZ
Then base64 decoded into this
BIBLIOGRAPHY