This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
src/Cardano/Wallet/Client Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ library
191191 , cardano-sl-node-ipc
192192 , cardano-sl-util
193193 , cardano-sl-wallet
194+ , cardano-sl-x509
194195 , cereal
195196 , conduit
196197 , connection
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module Cardano.Wallet.Client.Http
88 , module Servant.Client
99 -- * Helper to load X509 certificates and private key
1010 , credentialLoadX509
11+ , readSignedObject
1112 , newManager
1213 , Manager
1314 ) where
@@ -20,6 +21,8 @@ import Data.ByteString (ByteString)
2021import Data.Default.Class (Default (.. ))
2122import Data.X509 (CertificateChain , SignedCertificate )
2223import Data.X509.CertificateStore (makeCertificateStore )
24+ import Data.X509.Extra (validateDefaultWithIP )
25+ import Data.X509.File (readSignedObject )
2326import Network.Connection (TLSSettings (.. ))
2427import Network.HTTP.Client (Manager , ManagerSettings ,
2528 defaultManagerSettings , newManager )
@@ -73,6 +76,7 @@ mkHttpsManagerSettings serverId caChain credentials =
7376 }
7477 clientHooks = def
7578 { onCertificateRequest = const . return . Just $ credentials
79+ , onServerCertificate = validateDefaultWithIP
7680 }
7781 clientSupported = def
7882 { supportedCiphers = ciphersuite_default
You can’t perform that action at this time.
0 commit comments