Angular & Ionic - How to serve with SSL [MAC]

preview_player
Показать описание
OpenSSL is obviously required to make this work.
Easy way to setup HTTPS on localhost for mac users.

1. Run the ionic ssl generate with prefered options

ionic ssl generate --country-name=x --state-or-province-name=x --locality-name=x

Extras:
--common-name=localhost --bits=2048

2. Open .ionic, ► drag out ssl to the root of your application ►
delete .ionic

"ssl": true,

4. Open up Keychain Access

Go to menu and click Archives ► Import

or use the shortcut Shift + Command + I

Make sure to press view info ► and apply trust...

5. Rerun ionic serve --ssl
Рекомендации по теме
join shbcf.ru