cde2afd264
Former-commit-id: bc12a795326740f2f7504c77e6efdd4a633d6a8e Former-commit-id: 206c1715e5164d8485423905848e545eecb2a220 [formerly 5ef346e51622358e3e9d4c6e94e348758fac361f [formerly 5ef346e51622358e3e9d4c6e94e348758fac361f [formerly 5ef346e51622358e3e9d4c6e94e348758fac361f [formerly 3d9f6a38a164185f31d5610b045744b79190087b]]]] Former-commit-id: 73593f34778fd5c5be7436189d48b72fc8699a0e Former-commit-id: b82bb6c8a4286f6c8b37331cecdd3de699771e90 Former-commit-id: fa5ef7ed8fb050a4fb24f18a5101faa10b72e4a2 Former-commit-id: 11138952c09bf43fccc5dc2dc8625c83b4d3dbdb [formerly 382271cf86238cf125c05867c60c53fef176955a] Former-commit-id: e452e246198248849d76ee37f0e20a6ce507a855
35 lines
1.8 KiB
Haskell
35 lines
1.8 KiB
Haskell
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
module Credentials where
|
|
|
|
import ClassyPrelude
|
|
|
|
-- openssl genrsa 512 > 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" <>
|
|
"4QIhAPdcPmFrtLUpTXx21wtVxotsO7+YcQxtRtBoXeiREUInAiEAx8Jx9a6eVRIh\n" <>
|
|
"slSTJMPuy/LbvK8VUTqtx9x2EhFhBJMCIQC68qlmwZs6y/N3HO4b8AD1gKCLhm/y\n" <>
|
|
"P2ikvCw1R+ZuQwIgdfcgMUPzgK16dMN5OabzaEF8/kouvo92fKZ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OqlDP2yu14BlsjTt+X2v6mhHnSM16c6AkpM/\n" <>
|
|
"-----END CERTIFICATE-----"
|