{"id":33152952,"url":"https://github.com/JuliaLang/MbedTLS.jl","last_synced_at":"2025-11-15T22:00:39.147Z","repository":{"id":41406407,"uuid":"41854188","full_name":"JuliaLang/MbedTLS.jl","owner":"JuliaLang","description":"Wrapper around mbedtls","archived":false,"fork":false,"pushed_at":"2024-03-01T10:43:02.000Z","size":689,"stargazers_count":41,"open_issues_count":33,"forks_count":50,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-10-19T10:07:02.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JuliaLang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["JuliaLang"]}},"created_at":"2015-09-03T10:32:18.000Z","updated_at":"2024-10-24T08:33:41.000Z","dependencies_parsed_at":"2022-08-10T02:07:27.151Z","dependency_job_id":"7e0540db-3e54-4dde-9f6a-b25013864c9e","html_url":"https://github.com/JuliaLang/MbedTLS.jl","commit_stats":{"total_commits":280,"total_committers":40,"mean_commits":7.0,"dds":0.6571428571428571,"last_synced_commit":"4c4de151b87778815b34aed53fa211b67dcdce50"},"previous_names":["juliaweb/mbedtls.jl"],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/JuliaLang/MbedTLS.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLang%2FMbedTLS.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLang%2FMbedTLS.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLang%2FMbedTLS.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLang%2FMbedTLS.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuliaLang","download_url":"https://codeload.github.com/JuliaLang/MbedTLS.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuliaLang%2FMbedTLS.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283604833,"owners_count":26863387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-09T02:00:05.828Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-15T19:00:46.109Z","updated_at":"2025-11-15T22:00:39.141Z","avatar_url":"https://github.com/JuliaLang.png","language":"Julia","funding_links":["https://github.com/sponsors/JuliaLang"],"categories":["Network Security","Frameworks and Libs"],"sub_categories":["TLS and SSL","Julia"],"readme":"# MbedTLS\n\n[![CI](https://github.com/JuliaLang/MbedTLS.jl/actions/workflows/ci.yml/badge.svg)](https://github.com/JuliaLang/MbedTLS.jl/actions/workflows/ci.yml)\n[![codecov.io](https://codecov.io/github/JuliaLang/MbedTLS.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaWeb/MbedTLS.jl?branch=master)\n[![pkgeval](https://juliahub.com/docs/MbedTLS/pkgeval.svg)](https://juliahub.com/ui/Packages/MbedTLS/bf9T0)\n\nA wrapper around the [mbed](https://tls.mbed.org/) TLS and cryptography C libary.\n\nCurrent supported mbedtls version: 2.16.0 (from [MbedTLS_jll.jl](https://github.com/JuliaBinaryWrappers/MbedTLS_jll.jl))\n\nUsage:\n\n```julia\nusing Sockets\nsock = connect(\"httpbin.org\", 443)\nentropy = MbedTLS.Entropy()\nrng = MbedTLS.CtrDrbg()\nMbedTLS.seed!(rng, entropy)\n\nctx = MbedTLS.SSLContext()\nconf = MbedTLS.SSLConfig()\n\nMbedTLS.config_defaults!(conf)\nMbedTLS.authmode!(conf, MbedTLS.MBEDTLS_SSL_VERIFY_REQUIRED)\nMbedTLS.rng!(conf, rng)\n\nfunction show_debug(level, filename, number, msg)\n    @show level, filename, number, msg\nend\n\nMbedTLS.dbg!(conf, show_debug)\n\nMbedTLS.ca_chain!(conf)\n\nMbedTLS.setup!(ctx, conf)\nMbedTLS.set_bio!(ctx, sock)\n\nMbedTLS.handshake(ctx)\n\nwrite(ctx, \"GET / HTTP/1.1\\r\\nHost: httpbin.org\\r\\n\\r\\n\")\nbuf = String(read(ctx, 100))\n@test ismatch(r\"^HTTP/1.1 200 OK\", buf)\n```\n\nDebugging with Wireshark.\n\nMbedTLS.jl can optionally log TLS session keys in\n[NSS Key Log Format](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/Key_Log_Format).\n\ne.g.\n```julia\nusing HTTP\nusing MbedTLS\nc = MbedTLS.SSLConfig(true, log_secrets=\"/Users/sam/stuff/secret_key_log\")\nHTTP.get(\"https://httpbin.org/ip\", sslconfig=c)\n```\n\nWireshark can be configrued to decrypt SSL traffic by setting the location\nof the key log file under:\n\n    Wireshark Preferences -\u003e Protocols -\u003e SSL; (Pre-)Master Secret log filename.\n\nSee: https://sharkfesteurope.wireshark.org/assets/presentations17eu/15.pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuliaLang%2FMbedTLS.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJuliaLang%2FMbedTLS.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuliaLang%2FMbedTLS.jl/lists"}