New-SanCertificate/README.md

29 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2022-07-15 12:25:01 -06:00
# New-SanCertificate
Generates a SAN self-signed certificate to be used by IIS for HTTPS communications.
The certificate will be automatically trusted by the local machine and assigned to the HTTPS binding of the defined IIS site.
2022-07-15 12:25:01 -06:00
## Requirements
2022-07-15 12:33:42 -06:00
- Must be running as an admin
- IIS must be installed for it to set the binding on the site
2022-07-15 12:33:42 -06:00
2022-07-15 12:25:01 -06:00
## Variables
2022-07-15 12:33:42 -06:00
| Variable | Required | Default | Choices | Description |
| ------------------ | -------- | ---------------------------- | ------- | ---------------------------------------------------------------------- |
| IpAddress | No | IPv4 addresses of the system | | IP Addresses to include in the Certificate |
| AdditionalDnsNames | No | | | Specifies additional DNS names that should be added to the certificate |
| SiteName | No | Default Web Site | | Defines the website that will have the IIS binding configured |
2022-07-15 12:33:42 -06:00
| Validity | No | 15 | | Defines the validity of the certificate in years |
2022-07-15 12:25:01 -06:00
## Example
2022-07-15 12:33:42 -06:00
```powershell
.\New-SanCertificate.ps1
```
2022-07-15 12:25:01 -06:00
## License
See LICENSE file for full license information.