aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2016-11-18 17:57:25 +0300
committerIgor Pashev <pashev.igor@gmail.com>2016-11-18 23:03:00 +0300
commit184c733db525bee500808fecd9b6f32367be7f12 (patch)
tree663a4eb86218fae55f4760f97e668a43ec91373a /modules
parent80c4948a8bfb12f7713e324dcfe7e29d0f15722e (diff)
downloadnixsap-184c733db525bee500808fecd9b6f32367be7f12.tar.gz
Added fakeSSL
Diffstat (limited to 'modules')
-rw-r--r--modules/pkgs/fakeSSL/cert.pem23
-rw-r--r--modules/pkgs/fakeSSL/default.nix11
-rw-r--r--modules/pkgs/fakeSSL/key.pem28
3 files changed, 62 insertions, 0 deletions
diff --git a/modules/pkgs/fakeSSL/cert.pem b/modules/pkgs/fakeSSL/cert.pem
new file mode 100644
index 0000000..a4fe610
--- /dev/null
+++ b/modules/pkgs/fakeSSL/cert.pem
@@ -0,0 +1,23 @@
+-----BEGIN CERTIFICATE-----
+MIID4zCCAsugAwIBAgIJAL6M3P/DUPxZMA0GCSqGSIb3DQEBCwUAMIGHMQswCQYD
+VQQGEwJYWDESMBAGA1UECAwJTmV2ZXJob29kMRAwDgYDVQQHDAdDaXR5IDE3MRkw
+FwYDVQQKDBBIb3JucyBhbmQgaG9vdmVzMRYwFAYDVQQDDA0qLmV4YW1wbGUubmV0
+MR8wHQYJKoZIhvcNAQkBFhBmYWtlQGV4YW1wbGUubmV0MB4XDTE2MDQxOTA2MTc1
+NVoXDTE2MDUxOTA2MTc1NVowgYcxCzAJBgNVBAYTAlhYMRIwEAYDVQQIDAlOZXZl
+cmhvb2QxEDAOBgNVBAcMB0NpdHkgMTcxGTAXBgNVBAoMEEhvcm5zIGFuZCBob292
+ZXMxFjAUBgNVBAMMDSouZXhhbXBsZS5uZXQxHzAdBgkqhkiG9w0BCQEWEGZha2VA
+ZXhhbXBsZS5uZXQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGQ0pr
+esyupc80YSW3q9IM348QJqYwj2DrwSdPSZmToyFmYNz87SCBxT9B4pqQt7iXWaUq
+ZB1/3CAa8ErqcMg2rJg0QCIAVuzYpgdpBQaihvbH4InyUk6W+dxgRfwot275triD
+G36RxCCQAwR9J4dmb1EZqzRdnb8IAO9WoAvHsTD9yBoo0YzD1o0BeMScL2h0lelM
+NU+gQTEb37f8kLJVAxKHEj9soH1K0V2IcOtZKZuWAaAyffhP2BXDltBraOF3MqrV
+LMfhSgRhLazq6Zxy8BoMYUpKetzQVmR6tYbVVwL3XiyxY8JoDoQo9JO8mAdS0Slj
+JnQvbAIwc1PU14JrAgMBAAGjUDBOMB0GA1UdDgQWBBTXU8kHHsrUOm5CWWub5vQ6
+wa40zzAfBgNVHSMEGDAWgBTXU8kHHsrUOm5CWWub5vQ6wa40zzAMBgNVHRMEBTAD
+AQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB+HNSaJG0MCbyCehGvfoPZg75KWDRbZuwQ
+MtJ19SMn1Z0QJ6CAWyqm6O3BPyCL77bQYej1I4lyWI1jsSCBzA+zXU9xtFcUdrxP
+ecB+pb1hgXDf9N08mF8R8HblT8Hcl7vnOOfs5cuu3K/KEiRM1cEknF1uog5+Jzha
+yFRAslphmSO+mC4ebdUnbqWzSxuiQFXXhplHMUksymBknPqUMXY7t6Bny2LuWeOe
+xHCNVcTQ3TA/Jkf/IbPYhW/WInfIxgBAyPHwEtkF+jhf9adIk4B7+VeNygCEmIeC
+8EoBqcV0b5sLo7+15g0by8Cfs7hNfy/uBd9tcFw3R6K1Fekb9S+O
+-----END CERTIFICATE-----
diff --git a/modules/pkgs/fakeSSL/default.nix b/modules/pkgs/fakeSSL/default.nix
new file mode 100644
index 0000000..ec62e79
--- /dev/null
+++ b/modules/pkgs/fakeSSL/default.nix
@@ -0,0 +1,11 @@
+# Via openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -nodes
+{ stdenv }:
+stdenv.mkDerivation {
+ name = "fakeSSL";
+ phases = [ "installPhase" ];
+ installPhase = ''
+ mkdir -p $out
+ ln -sf ${./cert.pem} "$out/cert.pem"
+ ln -sf ${./key.pem} "$out/key.pem"
+ '';
+}
diff --git a/modules/pkgs/fakeSSL/key.pem b/modules/pkgs/fakeSSL/key.pem
new file mode 100644
index 0000000..8f3e4b2
--- /dev/null
+++ b/modules/pkgs/fakeSSL/key.pem
@@ -0,0 +1,28 @@
+-----BEGIN PRIVATE KEY-----
+MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDGQ0presyupc80
+YSW3q9IM348QJqYwj2DrwSdPSZmToyFmYNz87SCBxT9B4pqQt7iXWaUqZB1/3CAa
+8ErqcMg2rJg0QCIAVuzYpgdpBQaihvbH4InyUk6W+dxgRfwot275triDG36RxCCQ
+AwR9J4dmb1EZqzRdnb8IAO9WoAvHsTD9yBoo0YzD1o0BeMScL2h0lelMNU+gQTEb
+37f8kLJVAxKHEj9soH1K0V2IcOtZKZuWAaAyffhP2BXDltBraOF3MqrVLMfhSgRh
+Lazq6Zxy8BoMYUpKetzQVmR6tYbVVwL3XiyxY8JoDoQo9JO8mAdS0SljJnQvbAIw
+c1PU14JrAgMBAAECggEAFUa5YMlf18oxb0SRoKFOvFTtbGVJZmKsmwAycL7MPVy/
+Q9ZXQMlNuL9rJ23i+m7M32keYWs3AzajN2DcGUabJcrl1o2fWHv7lNBUcT+50406
+RH7jLt8IUglkTeyUv+XXgfLK4D7+GTR77hh0zd2FGUgO4vtNdlJsYrZ++MPaH8bC
+xwCNQog5YDkOvMo4fYI88/Ih2HS+IHTK4BTqmHIRwZQh0D21SEGGueoYiQh0VMHU
+OrbfK8Nuvk2xRfxmBNHbFmEOA327v9RCmXRfOR/B2qhAmLH41NkEbBNwoWo+V4zu
+zU1ZQX/dWSuLIB4p4HD1m2039dFJSwdEMKXFnf1REQKBgQDl7EcbrWLwP4rWTwFH
+pfaiBeSlYcU+gSKnjxrkm4FcSstR27pKPeV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