This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE NamedFieldPuns #-} | |
import Control.Monad (when) | |
import qualified Data.ByteString.Char8 as BSC | |
import Data.Default.Class (def) | |
import Data.Monoid ((<>)) | |
import System.IO.Error (ioError, userError) | |
import Data.X509 (CertificateChain (..), HashALG(..)) | |
import Data.X509.CertificateStore (makeCertificateStore) |