<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij" -->

---
title: gh2o/bash_tls: A minimal TLS 1.2 client implementation...
description: A minimal TLS 1.2 implementation in a pure Bash script that can make HTTPS requests to web servers with support for a single cipher suite and server name...
canonical: https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: gh2o/bash_tls: A minimal TLS 1.2 client implementation in a pure Bash script | daily.dev
og:description: A minimal TLS 1.2 implementation in a pure Bash script that can make HTTPS requests to web servers with support for a single cipher suite and server name...
og:url: https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij
og:image: https://api.daily.dev/og/posts/PoiFCVFij.png
og:image:alt: gh2o/bash_tls: A minimal TLS 1.2 client implementation in a pure Bash script
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# gh2o/bash_tls: A minimal TLS 1.2 client implementation in a pure Bash script

**[Lobsters](https://daily.dev/sources/lobsters)** · 1 min read · 2 upvotes · 2 comments

## Summary

A minimal TLS 1.2 implementation in a pure Bash script that can make HTTPS requests to web servers with support for a single cipher suite and server name indication. It depends on bash, GNU bc, and sha256sum or shasum.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/gh2o/bash_tls/>

## Community discussion

Top comments from developers on daily.dev.

**@kripi\_png** · 0 upvotes

> Bash syntax is what you think programming looks like to non-programmers while writing js or python.
>
> Anyway, I kinda wish I knew how to write it.

---

Tags: [#security](https://daily.dev/tags/security), [#bash](https://daily.dev/tags/bash)

[View this post on daily.dev](https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"gh2o/bash_tls: A minimal TLS 1.2 client implementation in a pure Bash script","url":"https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij"},"datePublished":"2024-05-09T17:25:38.887Z","dateModified":"2024-05-09T17:25:37.839Z","description":"A minimal TLS 1.2 implementation in a pure Bash script that can make HTTPS requests to web servers with support for a single cipher suite and server name...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9bb35856eb4a7c1b23e00f4f45514edd?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9bb35856eb4a7c1b23e00f4f45514edd?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":2,"discussionUrl":"https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":2}],"keywords":"security,bash","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"gh2o/bash_tls: A minimal TLS 1.2 client implementation in a pure Bash script"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/gh2o-bash-tls-a-minimal-tls-1-2-client-implementation-in-a-pure-bash-script-poifcvfij","comment":[{"@type":"Comment","text":"Bash syntax is what you think programming looks like to non-programmers while writing js or python.\nAnyway, I kinda wish I knew how to write it.","datePublished":"2024-05-17T18:02:35.295Z","url":"https://daily.dev/posts/PoiFCVFij#c-kI5qoILoh","author":{"@type":"Person","name":"kripi","url":"https://daily.dev/kripi_png","image":"https://avatars.githubusercontent.com/u/66375160?v=4"}}]}
```

