haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 57 forks source link

encode public key #8

Closed rekado closed 12 years ago

rekado commented 12 years ago

encode public keys. An encoded public key can be converted to ASCII armour representation by base64 encoding it.

vincenthz commented 12 years ago

your pull request description is a bit confusing; there's nothing about ASCII armour in the patch.

But i've pulled the public key encoding patch, thanks for the contribution !

rekado commented 12 years ago

Thanks for pulling!

Yeah, upon reading the description again I realise that it is easy to misunderstand. All I meant is that the encoded format can easily be turned into PEM format by base64 encoding it and wrapping it with ---- BEGIN/END PUBLIC KEY ----. The patch itself only creates the ASN1 sequence(s) from a public key.