Testing HSTS-protected Web Applications with BurpSuite
- Used firefox
- set up burp as proxy in firefox setting
- opened https://pro.portswigger.net/ (this is not HSTS protected)
- Got the certificate not trusted message
- Clicked on add exception
- Changed tab from general to details
- Highlighted portswiggerCA so that it became blue and clicked on export
- Once exported, close the window and the tab underneath.
- Go to the options of firefox, click on advanced and then view certificates
- Select the "authorities" tab and then click on "import". Import the certificate you exported before and make sure you tick the"Trus this CA to identifiy Websites" option before pressing OK.
- Now you can close this menu and load your HSTS-protected website :)
Inspired by this video