[PATCH phosphor-rest-server] Add self-signed cert

OpenBMC Patches openbmc-patches at stwcx.xyz
Sat Nov 14 02:10:25 AEDT 2015


From: Brad Bishop <bradleyb at us.ibm.com>

Eventually will be running with SSL.
---
 cert.pem | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 setup.py |  6 ++++--
 2 files changed, 52 insertions(+), 2 deletions(-)
 create mode 100644 cert.pem

diff --git a/cert.pem b/cert.pem
new file mode 100644
index 0000000..095da08
--- /dev/null
+++ b/cert.pem
@@ -0,0 +1,48 @@
+-----BEGIN CERTIFICATE-----
+MIIDbzCCAlegAwIBAgIJAL6IhnBSzF8HMA0GCSqGSIb3DQEBCwUAME4xCzAJBgNV
+BAYTAlhYMRUwEwYDVQQHDAxEZWZhdWx0IENpdHkxFDASBgNVBAoMC29wZW5ibWMu
+b3JnMRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMTUxMTA2MjAzNTA2WhcNMTYxMTA1
+MjAzNTA2WjBOMQswCQYDVQQGEwJYWDEVMBMGA1UEBwwMRGVmYXVsdCBDaXR5MRQw
+EgYDVQQKDAtvcGVuYm1jLm9yZzESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkq
+hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0wl2ji+GPUpg21yjyo5jh+KwnZsV91wV
+EO1DM6bdHbM/p34GkNRC6PO6DMDc3lGXaoVLHgdxhNMO/7lPwrAbO2dUyjoo4RCP
+O23hWadodstfhgCMa5/h6rSbxtpVsnWD3nBh88tlug+jBZ625d6S+5MglfgrrQai
++gYC9xDzCmMN7yWsfKWO8WfrMfebkB7c+TuWnF/O6u/wmUEZOybavrfP79MuLbwC
++UkxF6PwiThGD7yINXSTxCDCN58MTrDML8AF7CWzBsYycJlJfcs2ix32Csk1FIey
+t+Ze+tzEIzvOb/1G0hkIg40msFaWWEgXX9MIDHDGONwYyejb4nO8mQIDAQABo1Aw
+TjAdBgNVHQ4EFgQUgoShQ/gqY2/oZWMRU4jJdA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/setup.py b/setup.py
index 2ddb129..f5f25e9 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,7 @@
 from distutils.core import setup
-setup(name='Phosphor REST',
+
+setup(name='obmc-rest',
       version='1.0',
-      scripts=['phosphor-rest']
+      scripts=['phosphor-rest'],
+      data_files=[('obmc-rest', ['cert.pem'])],
       )
-- 
2.6.3




More information about the openbmc mailing list