This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define where Apache writes the log files | |
$logFiles = "C:\path\to\logs" | |
# Define the location the log files should be archived to | |
$logArchive = "C:\path\to\archive" | |
# Define for how many days we should retain logs in the archive location | |
$logLimit = (Get-Date).AddDays(-90) | |
# Stop the Apache HTTP Server service, using a wildcard to find it by name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define where OpenSSL is installed | |
$openSSLDir = "C:\Program Files\OpenSSL\bin" | |
# Define the domain we're generating the CSR for | |
$commonName = Read-Host -Prompt "Provide the domain you're generating a certificate for" | |
# Define the default parameters on the certificate | |
$email = '[email protected]' | |
$country = 'GB' | |
$state = 'Suffolk' |
OlderNewer