-
Notifications
You must be signed in to change notification settings - Fork 19
Adding self signed certificate to your browser
Ruchira edited this page Dec 3, 2017
·
8 revisions
The development environment comes with a self signed certificate for the domain *.orangehrmdev.com. To get your orangehrm instances to be trusted by the browser, you have to follow the below steps.
- Checkout to your code to a folder name that follows the pattern *.orangehrmdev.com. Eg: trunk.orangehrmdev.com. Add trunk.orangehrmdev.com to your host /etc/hosts file
127.0.0.1 localhost trunk.orangehrmdev.com
- Access the instance in chrome (eg: https://trunk.orangehrmdev.com:9056)
- When you get the "Your connection is not private" message, go into development tools
- Click on security tab.
- Click "View Certificate" and go to "Details" tab
- Click Export
- Choose the first option (Base64 Encoded, ASCII, Single Certificate) and Save
- Install the tool certutil in your host (in ubuntu sudo apt-get install libnss3-tools)
- Add the file exported above to the certificate store using coreutil
certutil -d sql:$HOME/.pki/nssdb -A -t "P,," -n _.orangehrmdev.com -i _.orangehrmdev.com
- Verify that it is added correctly:
certutil -d sql:/home/ruchira/.pki/nssdb -L
- Restart chrome and visit the page (eg: https://trunk.orangehrmdev.com:9056).
- It should now show up in green as a trusted site.
1.To Do