Open crockeea opened 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?
PrivKey
ASN1Object
ByteString
tlsSettingsMemory
ASN1Object doesn't seem to be deprecated. Data.ASN1.Object is deprecated in favor of Data.ASN1.Types but the latter also exposes ASN1Object.
Data.ASN1.Object
Data.ASN1.Types
PrivKey
is an instance of the deprecatedASN1Object
class, which doesn't seem to provide a straightforward encoding as aByteString
, which is whattlsSettingsMemory
wants. How can I easily serialize Data.X509 keys?