{"id":17184438,"url":"https://github.com/reneme/botan-tls-testserver","last_synced_at":"2025-03-25T02:48:08.794Z","repository":{"id":201217203,"uuid":"707232144","full_name":"reneme/botan-tls-testserver","owner":"reneme","description":"A simple web app to showcase Botan's TLS implementation","archived":false,"fork":false,"pushed_at":"2024-04-26T07:29:33.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T04:15:44.149Z","etag":null,"topics":["boost","boost-beast","botan","post-quantum-cryptography","tls"],"latest_commit_sha":null,"homepage":"https://pq.botan-crypto.org","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reneme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-10-19T13:35:40.000Z","updated_at":"2023-10-19T14:36:41.000Z","dependencies_parsed_at":"2024-04-26T08:45:51.814Z","dependency_job_id":null,"html_url":"https://github.com/reneme/botan-tls-testserver","commit_stats":null,"previous_names":["reneme/botan-tls-testserver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneme%2Fbotan-tls-testserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneme%2Fbotan-tls-testserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneme%2Fbotan-tls-testserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reneme%2Fbotan-tls-testserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reneme","download_url":"https://codeload.github.com/reneme/botan-tls-testserver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245388761,"owners_count":20607163,"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","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":["boost","boost-beast","botan","post-quantum-cryptography","tls"],"created_at":"2024-10-15T00:43:17.850Z","updated_at":"2025-03-25T02:48:08.764Z","avatar_url":"https://github.com/reneme.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Botan Hybrid TLS Test Server\n\nThis simple web app can be used to test your client against Botan's TLS\nimplementation. The server itself is using Boost asio for TCP, [Botan's asio\nstream](https://botan.randombit.net/handbook/api_ref/tls.html#tls-stream) for\nTLS and Boost beast for HTTP.\n\nThe app displays a web page inspired by [Cloudflare's post-quantum TLS test\npage](https://pq.cloudflareresearch.com), that visualizes what key exchange\nalgorithm was used to establish the TLS connection from the user's browser and\nthe test server.\n\n## Online Test\n\nA running version of the app is deployed here:\n[https://pq.botan-crypto.org](https://pq.botan-crypto.org).\n\n## Build\n\nAt the moment, you'll need the latest (i.e. unreleased) revision of Botan.\nTherefore, this repository contains it as a submodule. As soon as Botan 3.3.0 is\nreleased (expected in January 2024), we'll remove the submodule and will rely on\nConan for the dependencies.\n\nAdditionally, a fairly recent version of Boost is required. The steps below\nassume that it is available on your system.\n\n```bash\ngit submodule init\ngit submodule update\n\n(cd 3rdparty/botan; ./configure.py --with-boost --without-documentation --disable-shared-library)\n(cd 3rdparty/botan; make -j8 libs cli)\n\ncmake -B build -S .\nmake -C build\n```\n\n## Run\n\nYou'll need a certificate for your test server. If you don't have one, you can\ncreate a basic certificate with Botan's CLI tool. After building Botan as\ndescribed above, from the repository's root run:\n\n```bash\nmkdir certs\n\n3rdparty/botan/botan keygen --algo=ECDSA --params=secp384r1 --output=certs/ca.key\n3rdparty/botan/botan keygen --algo=ECDSA --params=secp384r1 --output=certs/server.key\n3rdparty/botan/botan gen_self_signed --ca --country=DE --dns=localhost --hash=SHA-384 --output=certs/ca.pem certs/ca.key localhost\n3rdparty/botan/botan gen_pkcs10 --output=certs/server.req certs/server.key localhost\n3rdparty/botan/botan sign_cert --output=certs/server.pem certs/ca.pem certs/ca.key certs/server.req\n```\n\nNow, it's time to start the server application:\n\n```bash\nbuild/testserver --cert certs/server.pem --key certs/server.key --port 50443 --policy policies/pqc_basic.txt\n```\n\nUsing the browser of you choice, visit: [https://localhost:50443](https://localhost:50443) to see it in action.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneme%2Fbotan-tls-testserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freneme%2Fbotan-tls-testserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freneme%2Fbotan-tls-testserver/lists"}