https://github.com/albertus82/update-wget-hsts
Import preloaded HTTP Strict Transport Security (HSTS) domains into GNU Wget.
https://github.com/albertus82/update-wget-hsts
hsts hstspreload linux preload wget
Last synced: 5 months ago
JSON representation
Import preloaded HTTP Strict Transport Security (HSTS) domains into GNU Wget.
- Host: GitHub
- URL: https://github.com/albertus82/update-wget-hsts
- Owner: albertus82
- License: mit
- Created: 2018-11-04T16:42:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T19:05:09.000Z (about 2 years ago)
- Last Synced: 2024-05-21T20:26:33.309Z (about 2 years ago)
- Topics: hsts, hstspreload, linux, preload, wget
- Language: Java
- Homepage:
- Size: 339 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Update Wget HSTS
=========================
[](https://github.com/albertus82/update-wget-hsts/releases/latest)
[](https://github.com/albertus82/update-wget-hsts/actions)
[](https://snyk.io/test/github/albertus82/update-wget-hsts?targetFile=pom.xml)
Import preloaded *HTTP Strict Transport Security* (HSTS) domains into GNU Wget.
## Minimum requirements
* Java SE Development Kit 8
## Build
`./mvnw clean verify`
## Usage
`java -jar update-wget-hsts.jar `
* ``: the `wget-hsts` file to write/update.
* ``: the `transport_security_state_static.json` file, or a URL pointing to it.
## Example
```sh
git clone https://github.com/albertus82/update-wget-hsts.git
cd update-wget-hsts
./mvnw clean verify
cd target
java -jar update-wget-hsts.jar ~/.wget-hsts https://github.com/chromium/chromium/raw/master/net/http/transport_security_state_static.json
```
### Output
```
Downloading 'https://github.com/chromium/chromium/raw/master/net/http/transport_security_state_static.json'... 10454 kB fetched
Parsing source file '/tmp/hsts-1508536545025252107.json'... 96703 entries found
Parsing destination file '/home/pi/.wget-hsts'... 90899 entries found
Computing entries to delete... 559
Computing entries to update... none
Computing entries to insert... 6105
Collecting entries to write... done
Backing up existing file '/home/pi/.wget-hsts'... -> '/home/pi/.wget-hsts.bak.gz'
Updating destination file '/home/pi/.wget-hsts'... done
```