Преглед на файлове

Improve documentation on how to use SSL certificates (see #248)

bel преди 9 години
родител
ревизия
9182a4b09d
променени са 1 файла, в които са добавени 24 реда и са изтрити 2 реда
  1. 24 2
      docs/OpenSSL.md

+ 24 - 2
docs/OpenSSL.md

@@ -61,8 +61,8 @@ and "type" by "cat"):
   type server.key >> server.pem
 </pre>
 
-The server.pem file created must contain a 'certificate' section as well as a
-'rsa private key' section. It should look like this (x represents BASE64
+The server.pem file created must contain a 'CERTIFICATE' section as well as a
+'RSA PRIVATE KEY' section. It should look like this (x represents BASE64
 encoded data):
 
 <pre>
@@ -99,6 +99,28 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
 </pre>
 
 
+Including a dertificate from a certificate authority
+----
+
+
+CivetWeb requires one certificate file in PEM format.
+If you got multiple files from your certificate authority, 
+you need to copy their content together into one file. 
+Make sure the file has one section BEGIN RSA PRIVATE KEY / 
+END RSA PRIVATE KEY, and at least one section 
+BEGIN CERTIFICATE / END CERTIFICATE. 
+In case you received a file with a section 
+BEGIN PRIVATE KEY / END PRIVATE KEY, 
+you may get a suitable file by adding the letters RSA manually.
+
+Set the "ssl_certificate" configuration parameter to the 
+file name (including path) of the resulting *.pem file.
+
+The file must look like the file in the section 
+"Creating a self signed certificate", but it will have several
+BEGIN CERTIFICATE / END CERTIFICATE sections.
+
+
 Common Problems
 ----