haskell-tls / hs-certificate

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

How to serialize keys #106

Open crockeea opened 5 years ago

crockeea commented 5 years ago

PrivKey is an instance of the deprecated ASN1Object class, which doesn't seem to provide a straightforward encoding as a ByteString, which is what tlsSettingsMemory wants. How can I easily serialize Data.X509 keys?

exarkun commented 1 year ago

ASN1Object doesn't seem to be deprecated. Data.ASN1.Object is deprecated in favor of Data.ASN1.Types but the latter also exposes ASN1Object.