瀏覽代碼

Create a bundle of certificates

Bob Mottram 10 年之前
父節點
當前提交
e88da5662e
共有 1 個檔案被更改,包括 17 行新增0 行删除
  1. 17
    0
      beaglebone.txt

+ 17
- 0
beaglebone.txt 查看文件

2648
   -out /etc/ssl/certs/$HOSTNAME.crt
2648
   -out /etc/ssl/certs/$HOSTNAME.crt
2649
 chmod 400 /etc/ssl/private/$HOSTNAME.key
2649
 chmod 400 /etc/ssl/private/$HOSTNAME.key
2650
 /etc/init.d/nginx reload
2650
 /etc/init.d/nginx reload
2651
+
2652
+# add the public certificate to a separate directory
2653
+# so that we can redistribute it easily
2654
+if [ ! -d /etc/ssl/mycerts ]; then
2655
+  mkdir /etc/ssl/mycerts
2656
+fi
2657
+cp /etc/ssl/certs/$HOSTNAME.crt /etc/ssl/mycerts
2658
+# Create a bundle of your certificates
2659
+cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
2651
 #+END_SRC
2660
 #+END_SRC
2652
 
2661
 
2653
 Save and exit.
2662
 Save and exit.
8237
 cat /etc/ssl/certs/$HOSTNAME.crt /etc/ssl/chains/startssl-sub.class1.server.ca.pem > /etc/ssl/certs/$HOSTNAME.bundle.crt
8246
 cat /etc/ssl/certs/$HOSTNAME.crt /etc/ssl/chains/startssl-sub.class1.server.ca.pem > /etc/ssl/certs/$HOSTNAME.bundle.crt
8238
 #+END_SRC
8247
 #+END_SRC
8239
 
8248
 
8249
+And also add it to the overall bundle of certificates for the BBB. This will allow you to easily install the certificates onto other systems.
8250
+
8251
+#+BEGIN_SRC: bash
8252
+mkdir /etc/ssl/mycerts
8253
+cp /etc/ssl/certs/$HOSTNAME.bundle.crt /etc/ssl/mycerts
8254
+cat /etc/ssl/mycerts/*.crt > /etc/ssl/freedombone-bundle.crt
8255
+#+END_SRC
8256
+
8240
 Edit your configuration file.
8257
 Edit your configuration file.
8241
 
8258
 
8242
 #+BEGIN_SRC: bash
8259
 #+BEGIN_SRC: bash