Update dependencies
Former-commit-id: 07be9bcd252c92551aeac5c658f92f74243105e1 Former-commit-id: b341e9cf83887e8916850743b19530e2ae62bedc [formerly b0dd237c1af7232c65504086f32c543e2969f21c] [formerly 5f84fe76bfaf2ea3150d2524b2d8df3bcc202b42 [formerly df2a945ea4f815d78825bbd6eb47355fa7862146 [formerly df2a945ea4f815d78825bbd6eb47355fa7862146 [formerly df2a945ea4f815d78825bbd6eb47355fa7862146 [formerly f3baa2138e3ecd75e07adaa8e8390e0d1d3eeed6]]]]] Former-commit-id: 5a12d3b8f84beb6967fd2273700830e11a919dcb [formerly 23f65ae564b717c82f4f878bebcfb23696470c28] Former-commit-id: c2dda31dea3d0634127eb6fb4b2557d41c8ee442 Former-commit-id: 886a28263ded5e3f13a642e8739eb4f83c0615f3 Former-commit-id: 937d535ef551e00fe83c69c16f715cd71ebda6dd Former-commit-id: 4aae739c2c9a054011d743112ab937f750c179c2 [formerly 6a87e7206c043684e0f0c5acf8d83cd5bcfb6014] Former-commit-id: 58fbcd0de59b4c8ff87286b9b61e90425df334bb
This commit is contained in:
parent
72e6b0df4f
commit
e3c9462b6b
6 changed files with 35 additions and 28 deletions
|
@ -4,32 +4,41 @@ module Credentials where
|
|||
|
||||
import ClassyPrelude
|
||||
|
||||
-- openssl genrsa 512 > host.key
|
||||
-- openssl genrsa 1024 > host.key
|
||||
-- openssl req -new -x509 -nodes -sha1 -days 9999 -key host.key > host.cert
|
||||
key :: ByteString
|
||||
key = "-----BEGIN RSA PRIVATE KEY-----\n" <>
|
||||
"MIIBOgIBAAJBAMEEloIcF3sTGYhQmybyDm1NOpXmf94rR1fOwENjuW6jh4WTaz5k\n" <>
|
||||
"Uew8CR58e7c5GgK08ZOJwi2Hpl9MfDm4mGUCAwEAAQJAGP+nHqLUx7PpkqYd8iVX\n" <>
|
||||
"iQB/nfqEhRnF27GDZTb9RT7e3bR7X1B9oIBnpmqwMG5oPxidoIKv+jzZjsQcxKLu\n" <>
|
||||
"4QIhAPdcPmFrt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hcQgxRA+9vO4KPvpn5p\n" <>
|
||||
"SnakXUwGlUwvCcMokQJBAKw9U5H88GyB4qWhnwhustnVnVg/bzkYGpryjDx6mLYh\n" <>
|
||||
"eMPlv6aH546XMJbQ6fRe3tgMBBgOD1QN9WvKuFQo2K4=\n" <>
|
||||
"-----END RSA PRIVATE KEY-----"
|
||||
|
||||
certificate :: ByteString
|
||||
certificate = "-----BEGIN CERTIFICATE-----\n" <>
|
||||
"MIICXTCCAgegAwIBAgIJAJf1Sm7DI0KcMA0GCSqGSIb3DQEBBQUAMIGJMQswCQYD\n" <>
|
||||
"VQQGEwJGUjESMBAGA1UECAwJQXF1aXRhaW5lMRAwDgYDVQQHDAdCYXlvbm5lMQ4w\n" <>
|
||||
"DAYDVQQKDAVFcmViZTELMAkGA1UECwwCSVQxFjAUBgNVBAMMDXJvbWFpbi5nZXJh\n" <>
|
||||
"cmQxHzAdBgkqhkiG9w0BCQEWEHdoeW5vdEBnbWFpbC5jb20wHhcNMTYwNTIxMTUy\n" <>
|
||||
"MzIyWhcNNDMxMDA2MTUyMzIyWjCBiTELMAkGA1UEBhMCRlIxEjAQBgNVBAgMCUFx\n" <>
|
||||
"dWl0YWluZTEQMA4GA1UEBwwHQmF5b25uZTEOMAwGA1UECgwFRXJlYmUxCzAJBgNV\n" <>
|
||||
"BAsMAklUMRYwFAYDVQQDDA1yb21haW4uZ2VyYXJkMR8wHQYJKoZIhvcNAQkBFhB3\n" <>
|
||||
"aHlub3RAZ21haWwuY29tMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMEEloIcF3sT\n" <>
|
||||
"GYhQmybyDm1NOpXmf94rR1fOwENjuW6jh4WTaz5kUew8CR58e7c5GgK08ZOJwi2H\n" <>
|
||||
"pl9MfDm4mGUCAwEAAaNQME4wHQYDVR0OBBYEFLY0HsQst1t3QRXU0aTWg3V1IvGX\n" <>
|
||||
"MB8GA1UdIwQYMBaAFLY0HsQst1t3QRXU0aTWg3V1IvGXMAwGA1UdEwQF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" <>
|
||||
"sIloMTAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAGkUgoDLmb5e\n" <>
|
||||
"SWPR61QEByPkIji4DytJfzUeJBZKyRQSMGC08yUAPAmFbIt1jqBO6nTum3TjlV6S\n" <>
|
||||
"7bv3kEhkgTdoKHyWtBitnR2wg90Ybm4K6OKLnoKZgvl1IZ6x8LCqI1RVIQMHaUkL\n" <>
|
||||
"L3+otPXxpH1LXGnikOlwLkF2LPhRmX9X\n" <>
|
||||
"-----END CERTIFICATE-----"
|
||||
|
|
|
@ -13,7 +13,6 @@ import qualified Data.ByteString.Char8 as BC
|
|||
import Control.Monad.Except
|
||||
import qualified Data.Conduit.Network.TLS as N
|
||||
import qualified Data.Streaming.Network as N
|
||||
import System.Timeout
|
||||
|
||||
import qualified Data.ByteString.Base64 as B64
|
||||
import Network.Socket (HostName, PortNumber)
|
||||
|
|
|
@ -6,8 +6,7 @@ module Protocols where
|
|||
import ClassyPrelude
|
||||
import Control.Concurrent (forkIO)
|
||||
import qualified Data.HashMap.Strict as H
|
||||
import System.Timeout (timeout)
|
||||
import System.IO
|
||||
import System.IO hiding (hSetBuffering, hGetBuffering)
|
||||
|
||||
import qualified Data.ByteString.Char8 as BC
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ import qualified Network.WebSockets.Stream as WS
|
|||
import Control.Monad.Except
|
||||
import qualified Network.Connection as NC
|
||||
import System.IO (IOMode (ReadWriteMode))
|
||||
import System.Timeout
|
||||
|
||||
import qualified Data.ByteString.Base64 as B64
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@ import Data.ByteString (hGetSome, hPutStr)
|
|||
|
||||
import qualified Data.Streaming.Network as N
|
||||
import qualified Network.Connection as NC
|
||||
import Network.Socket (HostName, PortNumber)
|
||||
import Network.Socket (HostName, PortNumber(..))
|
||||
import Network.Socket.Internal (PortNumber(..))
|
||||
import qualified Network.Socket as N hiding (recv, recvFrom,
|
||||
send, sendTo)
|
||||
import qualified Network.Socket.ByteString as N
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
# resolver:
|
||||
# name: custom-snapshot
|
||||
# location: "./custom-snapshot.yaml"
|
||||
resolver: lts-9.9
|
||||
resolver: lts-14.11
|
||||
|
||||
# User packages to be built.
|
||||
# Various formats can be used as shown in the example below.
|
||||
|
@ -35,7 +35,7 @@ packages:
|
|||
# Dependency packages to be pulled from upstream that are not in the resolver
|
||||
# using the same syntax as the packages field.
|
||||
# (e.g., acme-missiles-0.3)
|
||||
extra-deps: [ websockets-0.12.4.1 ]
|
||||
extra-deps: [ ]
|
||||
|
||||
# Override default flag values for local packages and extra-deps
|
||||
# flags: {}
|
||||
|
|
Loading…
Reference in a new issue