5.1 Scripts
We have 3 important scripts:
- GenerateSecureDomain
- CreateCertificate
- AddDnsRecord
You can use the first for create a domain in godaddy.com and also relative certificate for their subdomains. You need to use this command:
./GenerateSecureDomain -d (domain name) -s (subdomain name) -a (ip address)
I show you an example:
./GenerateSecureDomain -d masterpack.proman.live -s api terminal admin -a 199.199.199.0
In this case, our scripts generate a DNS record for:
- masterpack.proman.live
- *.masterpack.proman.live
and generate ssl certificate (OV) for the subdomains:
- api.masterpack.proman.live
- terminal.masterpack.proman.live
- admin.masterpakc.proman.live
if you need to create only a dns record or ssl certificate, you can run only one script that you need. For the script AddDnsRecord you need to specify the following field:
./AddDnsRecord -d (domain name) -n (subdomain name) -a (ip address)
for example:
./AddDnsRecord -d proman.live -n prova.proman.live -a 192.168.168.111
and you create a dns record for your domain in godaddy.
If you need to create a single certificate you can use CreateCertificate using the following command:
./CreateCertificate -d (domain name)
for exapmle:
./CreateCertificate -d api.prova.proman.live
you need to add a certicate only for subdomains of 4° level, because until 3° level already exists certificate OV and DV.
Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation