commented out all SSL sections when not using SSL
This commit is contained in:
		
							parent
							
								
									44a1f3a87f
								
							
						
					
					
						commit
						e4784c6133
					
				
							
								
								
									
										2
									
								
								.vscode/numbered-bookmarks.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.vscode/numbered-bookmarks.json
									
									
									
									
										vendored
									
									
								
							| @ -6,7 +6,7 @@ | ||||
| 				-1, | ||||
| 				19, | ||||
| 				54, | ||||
| 				774, | ||||
| 				788, | ||||
| 				68, | ||||
| 				-1, | ||||
| 				-1, | ||||
|  | ||||
							
								
								
									
										14
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								setup.sh
									
									
									
									
									
								
							| @ -767,6 +767,20 @@ if [ "${phpType}" = "sockets" ]; then | ||||
|     sed -i 's/^\s*index/\    index index.php/' "${configPath}/${file_phphandler}" | ||||
| fi | ||||
| 
 | ||||
| # comment all SSL related entries if NOT using SSL | ||||
| if [ "${useSSL}" -eq 0 ]; then | ||||
|     # comment ssl locations in ssl_certs.conf | ||||
|     echo -e "disabling SSL paths in ${warn}${configPath}/${file_ssl}${norm}" | ||||
|     sed -i 's/^ssl_certificate/#ssl_certificate/g' "${configPath}/${file_ssl}" | ||||
|     # comment ssl_dhparam in mozModern_ssl.conf | ||||
|     echo -e "disabling DHparams in ${warn}${configPath}/${file_mozmodern}${norm}" | ||||
|     sed -i 's/^ssl_dhparam/#ssl_dhparam/' "${configPath}/${file_mozmodern}" | ||||
|     # comment OCSP section in mozModern_ssl.conf | ||||
|     echo -e "disabling OCSP stapling in ${warn}${configPath}/${file_mozmodern}${norm}" | ||||
|     sed -i 's/^ssl_stapling/#ssl_stapling/g' "${configPath}/${file_mozmodern}" | ||||
|     sed -i 's/^ssl_trusted/#ssl_trusted/' "${configPath}/${file_mozmodern}" | ||||
| fi | ||||
| 
 | ||||
| # notify user file updates are completed | ||||
| echo -e "${ok}...files updated${norm}" | ||||
| echo -e "${mag}---------------------${norm}\n" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user