Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gh2o/bash_tls
A minimal TLS 1.2 client implementation in a pure Bash script
https://github.com/gh2o/bash_tls
aes bash tls
Last synced: 2 months ago
JSON representation
A minimal TLS 1.2 client implementation in a pure Bash script
- Host: GitHub
- URL: https://github.com/gh2o/bash_tls
- Owner: gh2o
- Created: 2017-09-04T01:23:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-03T05:39:25.000Z (about 1 year ago)
- Last Synced: 2024-08-04T04:09:16.581Z (6 months ago)
- Topics: aes, bash, tls
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 333
- Watchers: 7
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bash_tls
A minimal TLS 1.2 implementation in a pure Bash scriptbash_tls implements TLS well enough to make a simple HTTPS request to most web servers.
## Usage
`./bash_tls.sh [https://website.com/path/to/file]`
If a URL is not given, defaults to `https://www.google.com/robots.txt`.## Features
* Supports a single cipher suite: TLS_RSA_WITH_AES_128_GCM_SHA256
* RSA key exchange
* HMAC-SHA256 as pseudorandom function
* AES in GCM mode for encryption
* Supports Server Name Indication## Missing
* Only supports RSA certificates
* Does not validate certificate chain## Dependencies
bash_tls depends only on the following software:
* bash 4.3+ compiled with `--enable-net-redirections`
* GNU bc (for doing RSA calculations)
* sha256sum (from Linux coreutils) or shasum (on Mac)## Performance
Don't ask.