From f1d8dda6ca32c2998d8ef70a0e5a491795e04eae Mon Sep 17 00:00:00 2001 From: Elliot Glaysher Date: Wed, 15 May 2019 17:04:21 -0700 Subject: [PATCH] Note about certificates. --- pkg/hair/lib/Vere/Http/Server.hs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/hair/lib/Vere/Http/Server.hs b/pkg/hair/lib/Vere/Http/Server.hs index 0978672f8..fc2c89a57 100644 --- a/pkg/hair/lib/Vere/Http/Server.hs +++ b/pkg/hair/lib/Vere/Http/Server.hs @@ -23,10 +23,14 @@ data Config = Config , redirect :: Bool } -newtype Key = Key Wain -newtype Cert = Cert Wain +-- Note: We need to parse PEM-encoded RSA private keys and cert or cert chain +-- from Wain +newtype Key = Key PEM +newtype Cert = Cert PEM data Wain = Wain [Text] +data PEM + data ClientResponse = Progress ResponseHeader Int (Maybe Int) (Maybe ByteString) | Finished ResponseHeader (Maybe MimeData)