Skip to content

Commit 4a70654

Browse files
Merge branch 'release/v1.0.2'
2 parents bce2ebc + 918e39d commit 4a70654

File tree

3 files changed

+33
-24
lines changed

3 files changed

+33
-24
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
66

77
## [Unreleased]
88

9+
## [1.0.2] - 2020-06-15
10+
11+
### Updated
12+
- Moved CLI argument count code (0 & >2) to a more logical section in ssl_config.bat
13+
- Fixed grammatical errors and general formatting in README.md
14+
15+
### Changed
16+
- Updated version number.
17+
918
## [1.0.1] - 2020-06-15
1019

1120
### Fixed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ WampServer SSL Auto Config is a Microsoft Windows batch script designed to autom
2929

3030
As the web moves towards 100% adaption of SSL, it makes sense that our development environment should match.
3131

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.
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.
3333

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.
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.
3535

3636
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.
3737

@@ -45,11 +45,11 @@ The following are required for the SSL Auto Config script to function correctly.
4545
* Use of Apache as a service.
4646
* Administrator rights.
4747

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.
4949

5050
## Compatible Web Browsers
5151

52-
Whilst any browser should work, browsers that use the Windows Trusted Root Certificate Store can take advantage of the trusted self signed 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.
5353

5454
Such browsers are:
5555

@@ -70,7 +70,7 @@ At just under 50kB the SSL Auto Config script is small enough to be saved anywhe
7070

7171
Configuration is carried out by editing a simple, easy to understand config `.ini` file.
7272

73-
Below is the contents of the `sample-config.ini` file.
73+
Below are the contents of the `sample-config.ini` file.
7474

7575
```
7676
;--------------------------;
@@ -143,27 +143,27 @@ documentRoot=C:/wamp64 - domains/website-2/public_html
143143

144144
* `sslEmail` : This value represents the email address of the organisation.
145145

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.
147147
148148
* `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.
149149

150150
#### Development Domains
151151

152152
* `[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.
153153

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.
155155

156156
* `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.
157157

158158
> **IMPORTANT:** Do not add quotation marks around your values, even if they contain spaces.
159159
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.
161161

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.
163163
164164
## How To Use
165165

166-
The SSL Auto Config script (`ssl_config.bat`) can perform two functions.
166+
The SSL Auto Config script can perform two functions.
167167

168168
1. Configure each and every installed version of Apache to use SSL.
169169
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
203203

204204
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.
205205

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.
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.
207207
208208
#### The Created Folder Structure
209209

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.
211211

212212
If you were to use the `sample-config.ini` file as your configuration file then the following command
213213

@@ -301,11 +301,11 @@ Not all browsers use the Windows Trusted Root Certificate Store. For those that
301301

302302
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.
303303

304-
To enable this feature follow the below steps:
304+
To enable this feature, follow the below steps:
305305
1. In the address bar type `about:config` and press the return key.
306306
2. If prompted, click the 'Accept the Risk and Continue' and 'Show All' buttons.
307307
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.
309309
5. If the flag exists and its value is `true` then Firefox is configured correctly.
310310

311311
#### How To Configure Other Browsers

ssl_config.bat

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rem INITIALISATION
77
rem -----------------------
88
rem Set default variables
99
rem -----------------------
10-
set $scriptVersion=1.0.1
10+
set $scriptVersion=1.0.2
1111
set $scriptLogFileName=ssl_config.log
1212

1313
rem WampServer sub-paths.
@@ -72,15 +72,6 @@ rem Count the number of arguments.
7272
set $argumentCount=0
7373
for %%x in (%*) do Set /A $argumentCount+=1
7474

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-
8475
rem Check if no arguments were given.
8576
if !$argumentCount! equ 0 (
8677
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 (
9182
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."
9283
)
9384

85+
86+
rem ----------------
87+
rem Get CLI arg(s)
88+
rem ----------------
89+
90+
rem Set the variables.
91+
set $configPath=
92+
set $restoreFlag=false
93+
9494
rem Check if two arguments were given.
9595
if !$argumentCount! equ 2 (
9696
rem Check for first combination.

0 commit comments

Comments
 (0)