Browse Source

0007: Creating and Applying SSL Certificate to Apache HTTPD

i12bretro 3 năm trước cách đây
mục cha
commit
5f132c0412
1 tập tin đã thay đổi với 19 bổ sung11 xóa
  1. 19 11
      0007.html

+ 19 - 11
0007.html

@@ -12,9 +12,11 @@
             });
 
             $('li').each(function(i,e){
-              var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
-              $(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
-              $(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
+							if(!$(this).hasClass('noCheckbox')){
+								var uuid = 'li_' + Math.floor(Math.random() * Math.floor(1000000)).toString() + '_' + i.toString();
+								$(this).contents().wrap('<span id="'+ uuid +'"><label for="cb_'+ uuid +'"></label></span>');
+								$(this).prepend('<input type="checkbox" class="completeBox" id="cb_' + uuid +'" rel="'+ uuid +'" />')
+							}
             });
 
             $('code,div.codeBlock,textarea.codeBlock').each(function(i,e){
@@ -23,7 +25,7 @@
               theElement.empty();
               for(l=0;l<lines.length;l++){
                 if($.trim(lines[l]) != '' && $.trim(lines[l]).substr(0,1) != '#' && $.trim(lines[l]).indexOf(' #') == -1 && lines[l].substr(0, 4).toUpperCase() != 'REM '){
-									                  theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ lines[l].replace(/"/g, '&quot;') +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
+									                  theElement.append('<input type="image" src="images/clipboard.png" value="" class="copy-text" rel="copy_'+ i +'_'+ l +'" data-clipboard-text="'+ $.trim(lines[l].replace(/"/g, '&quot;')) +'" /><span id="copy_'+ i +'_'+ l +'">'+ lines[l] +'</span>');
 									                } else {
                   theElement.append(lines[l]);
                 }
@@ -37,6 +39,8 @@
               try {
                 if($('#'+ theButton.attr('rel')).parent('div').hasClass('PS')){
                   $('#'+ theButton.attr('rel')).addClass('copy-animation-ps');
+								} else if($('#'+ theButton.attr('rel')).parent('div').hasClass('CMD')){
+									$('#'+ theButton.attr('rel')).addClass('copy-animation-cmd');
                 } else {
                   $('#'+ theButton.attr('rel')).addClass('copy-animation');
                 }
@@ -75,7 +79,11 @@
           </div>
           <div></div>
           <div id="content">
-          <h2>Create Your SSL Certificate</h2>
+          <p>This is part four of a series of creating your own self-signed PKI and some ways to utilize the PKI to setup SSL for your web server or create your own OpenVPN server.</p>
+
+<p>Disclaimer: I am not a security expert. This is just the easiest way I have found to create and utilize SSL for my homelab services.</p>
+
+<h2>Create Your SSL Certificate</h2>
 
 <ol>
 	<li>Launch XCA</li>
@@ -136,12 +144,12 @@
 	<li>At the bottom of the file add a VirtualHost block
 	<p>Listen 443<br />
 	&lt;virtualhost :443&gt;<br />
-	    SSLEngine on<br />
-	    SSLProtocol -All +TLSv1.2 +TLSv1.3<br />
-	    SSLCipherSuite HIGH:!aNULL:!MD5<br />
-	    SSLCertificateFile /conf/certs/%ssl.crt file%<br />
-	    SSLCertificateKeyFile /conf/certs/%ssl.key file%<br />
-	    SSLCertificateChainFile /conf/certs/%ssl-chain.crt file%<br />
+	SSLEngine on<br />
+	SSLProtocol -All +TLSv1.2 +TLSv1.3<br />
+	SSLCipherSuite HIGH:!aNULL:!MD5<br />
+	SSLCertificateFile /conf/certs/%ssl.crt file%<br />
+	SSLCertificateKeyFile /conf/certs/%ssl.key file%<br />
+	SSLCertificateChainFile /conf/certs/%ssl-chain.crt file%<br />
 	&lt;/virtualhost&gt;</p>
 	</li>
 	<li>Restart the Apache Service</li>