You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,9 @@ WampServer SSL Auto Config is a Microsoft Windows batch script designed to autom
29
29
30
30
As the web moves towards 100% adaption of SSL, it makes sense that our development environment should match.
31
31
32
-
Enabling and configuring SSL in WampServer can be a challenge. Knowledge of Apache and OpenSSL is required. The desire to work with multiple domains, each setup with its own unique selfsigned SSL certificate, its own unique document root (located in any directory on any drive you want) and its own unique set of log files requires a reliable and repeatable approach.
32
+
Enabling and configuring SSL in WampServer can be a challenge. Knowledge of Apache and OpenSSL is required. The desire to work with multiple domains, each setup with its own unique self-signed SSL certificate, its own unique document root (located in any directory on any drive you want) and its own unique set of log files requires a reliable and repeatable approach.
33
33
34
-
In only a couple of seconds, this batch script automatically creates all the necessary domain specific directories, certificates, log files and configuration files, which are then linked to each and every version of Apache you have installed on your system. In addition to this it also adds your SSL certificates to the Windows Trusted Root Certificate Store removing the need to constantly accept untrusted selfsigned certificates in the browser. Finally, it also tries to update your systems 'host' file for url friendly domain name addresses. All of this is achieved through the use of a simple, easy to understand `config.ini` file.
34
+
In only a couple of seconds, this batch script automatically creates all the necessary domain specific directories, certificates, log files and configuration files, which are then linked to each and every version of Apache you have installed on your system. In addition to this it also adds your SSL certificates to the Windows Trusted Root Certificate Store removing the need to constantly accept untrusted self-signed certificates in the browser. Finally, it also tries to update your systems 'host' file for URL friendly domain name addresses. All of this is achieved through the use of a simple, easy to understand `config.ini` file.
35
35
36
36
As a safety measure, running the script for the very first time will backup your systems 'host' file, and the primary configuration file of each and every version of Apache you have installed. Thus, if for any reason things don't go the way they should, a simple `restore` command can roll back WampServer to its prior state.
37
37
@@ -45,11 +45,11 @@ The following are required for the SSL Auto Config script to function correctly.
45
45
* Use of Apache as a service.
46
46
* Administrator rights.
47
47
48
-
Administrator rights are required to update and roll back your systems 'host' file. Without Administrator rights this script will not be able to write to your systems 'host' file, preventing you from using url friendly domain name addresses. Whilst this does not stop the script from working, it definitely does prevent the use of this great feature.
48
+
Administrator rights are required to update and roll back your systems 'host' file. Without Administrator rights this script will not be able to write to your systems 'host' file, preventing you from using URL friendly domain name addresses. Whilst this does not stop the script from working, it definitely does prevent the use of this great feature.
49
49
50
50
## Compatible Web Browsers
51
51
52
-
Whilst any browser should work, browsers that use the Windows Trusted Root Certificate Store can take advantage of the trusted selfsigned certificates.
52
+
Whilst any browser should work, browsers that use the Windows Trusted Root Certificate Store can take advantage of the trusted self-signed certificates.
53
53
54
54
Such browsers are:
55
55
@@ -70,7 +70,7 @@ At just under 50kB the SSL Auto Config script is small enough to be saved anywhe
70
70
71
71
Configuration is carried out by editing a simple, easy to understand config `.ini` file.
72
72
73
-
Below is the contents of the `sample-config.ini` file.
73
+
Below are the contents of the `sample-config.ini` file.
*`sslEmail` : This value represents the email address of the organisation.
145
145
146
-
> **Note:** Use the 'local' part of an email address followed by the at (@) symbol only. Do not include the 'domain' part of the email address as the hostname will be auto-appended.
146
+
> **Note:** Use the 'local' part of an email address followed by the @ (at) symbol only. Do not include the 'domain' part of the email address as the hostname will be auto-appended.
147
147
148
148
*`sslDays` : This value represents the number of days you would like the certificates to remain valid for. Enter a high value so your SSL certificate does not expire to regularly and become an inconvenience.
149
149
150
150
#### Development Domains
151
151
152
152
*`[Website 1]` : This section name represent the human readable host name which is used within your various configuration files. Whilst it is not used by WampServer itself, it will definitely make identification within the generated configuration files easier.
153
153
154
-
*`hostname` : This value represents the friendly url address used to access your site in your web browser.
154
+
*`hostname` : This value represents the URL friendly address used to access your site in your web browser.
155
155
156
156
*`documentRoot` : This value represents the (absolute) path to the public facing directory (commonly called the document root) of your website. This path does not need to be in the same directory or even on the same drive as WampServer. That said, it is not recommended to point this to a network drive.
157
157
158
158
> **IMPORTANT:** Do not add quotation marks around your values, even if they contain spaces.
159
159
160
-
Blank lines and commented lines starting with a semicolon (`;`) character are ignored. You may format and comment your configuration file any way you like.
160
+
Blank lines and commented lines starting with a semicolon ( ; ) character are ignored. You may format and comment your configuration file any way you like.
161
161
162
-
> Tip: You can copy and rename the `sample-config.ini` file to any directory on any drive you like.
162
+
> **Tip:** You can copy and rename the `sample-config.ini` file to any directory on any drive you like.
163
163
164
164
## How To Use
165
165
166
-
The SSL Auto Config script (`ssl_config.bat`) can perform two functions.
166
+
The SSL Auto Config script can perform two functions.
167
167
168
168
1. Configure each and every installed version of Apache to use SSL.
169
169
2. Return each and every installed version of Apache back to its original state.
@@ -203,11 +203,11 @@ If at any stage you install a new version of Apache just run the script again to
203
203
204
204
Should you find that your SSL certificate(s) expire then just run the script again. Doing so will generate new certificates and update then in the Windows Trusted Root Certificate store. If your certificate(s) seem to expire to quickly, just increase the value of `sslDays` in your `config.ini` file.
205
205
206
-
> **IMPORTANT:** It is important to understand that the backup taken of each installed version of Apache's primary configuration file is a 'snap-shot' of their state at that particular point in time. Any changes you make to that version of Apache (such as enabling or disabling modules via the WampServer menu located in the notification area) will not be saved to the backedup version. Therefore, if you run the `restore` command, the 'backedup' version will overwrite any modified settings.
206
+
> **IMPORTANT:** It is important to understand that the backup taken of each installed version of Apache's primary configuration file is a 'snap-shot' of their state at that particular point in time. Any changes you make to that version of Apache (such as enabling or disabling modules via the WampServer menu located in the notification area) will not be saved to the backed-up version. Therefore, if you run the `restore` command, the 'backed-up' version will overwrite any modified settings.
207
207
208
208
#### The Created Folder Structure
209
209
210
-
This script generates a preset folder structure base around the value of `wampServerExtensionsPath` in your `config.ini` file.
210
+
This script generates a pre-set folder structure base around the value of `wampServerExtensionsPath` in your `config.ini` file.
211
211
212
212
If you were to use the `sample-config.ini` file as your configuration file then the following command
213
213
@@ -301,11 +301,11 @@ Not all browsers use the Windows Trusted Root Certificate Store. For those that
301
301
302
302
By default, Firefox prefers to use its own internal certificate store. To enable its use of the Windows Trusted Root Certificate Store you must first enable this feature.
303
303
304
-
To enable this feature follow the below steps:
304
+
To enable this feature, follow the below steps:
305
305
1. In the address bar type `about:config` and press the return key.
306
306
2. If prompted, click the 'Accept the Risk and Continue' and 'Show All' buttons.
307
307
3. In the 'Search preference name' field type `security.enterprise_roots.enabled` into the search field.
308
-
4. If the flag is missing, select `boolean` as a value type and then click the add (+) button.
308
+
4. If the flag is missing, select `boolean` as a value type and then click the add ( + ) button.
309
309
5. If the flag exists and its value is `true` then Firefox is configured correctly.
Copy file name to clipboardExpand all lines: ssl_config.bat
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ rem INITIALISATION
7
7
rem -----------------------
8
8
rem Set default variables
9
9
rem -----------------------
10
-
set$scriptVersion=1.0.1
10
+
set$scriptVersion=1.0.2
11
11
set$scriptLogFileName=ssl_config.log
12
12
13
13
rem WampServer sub-paths.
@@ -72,15 +72,6 @@ rem Count the number of arguments.
72
72
set$argumentCount=0
73
73
for%%xin (%*) doSet /A $argumentCount+=1
74
74
75
-
76
-
rem ----------------
77
-
rem Get CLI arg(s)
78
-
rem ----------------
79
-
80
-
rem Set the variables.
81
-
set$configPath=
82
-
set$restoreFlag=false
83
-
84
75
rem Check if no arguments were given.
85
76
if!$argumentCount!equ0 (
86
77
call :failure"CLI Argument Error""ssl_conf.bat""No ini file was given.""Please pass in the path to your config.ini file."
@@ -91,6 +82,15 @@ if !$argumentCount! gtr 2 (
91
82
call :failure"CLI Argument Error""ssl_conf.bat""More than two arguments were given.""Please only pass in a maximum of 2 arguments, your ini file and the optional restore command."
0 commit comments