ionic ssl generate
Generates an SSL key & certificate
ionic ssl generate [options]
Uses OpenSSL to create a self-signed certificate for localhost (by default).
After the certificate is generated, you will still need to add it to your system or browser as a trusted certificate.
The default directory for --key-path and --cert-path is .ionic/ssl/.
Options
| 
 | |
|---|---|
| Description | Destination of private key file | 
| Default | ./.ionic/ssl/key.pem | 
| 
 | |
| Description | Destination of certificate file | 
| Default | ./.ionic/ssl/cert.pem | 
Advanced Options
| 
 | |
|---|---|
| Description | The country name (C) of the SSL certificate | 
| Default | US | 
| 
 | |
| Description | The state or province name (ST) of the SSL certificate | 
| Default | Wisconsin | 
| 
 | |
| Description | The locality name (L) of the SSL certificate | 
| Default | Madison | 
| 
 | |
| Description | The organization name (O) of the SSL certificate | 
| Default | Ionic | 
| 
 | |
| Description | The common name (CN) of the SSL certificate | 
| Default | localhost | 
| 
 | |
| Description | Number of bits in the key | 
| Aliases | -b | 
| Default | 2048 |