{"id":17330364,"url":"https://github.com/foxboron/swtpm_test","last_synced_at":"2025-07-03T19:07:21.345Z","repository":{"id":148133423,"uuid":"606896649","full_name":"Foxboron/swtpm_test","owner":"Foxboron","description":"Library for initializing user accessible swtpm socket","archived":false,"fork":false,"pushed_at":"2023-07-26T22:44:00.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T05:44:38.358Z","etag":null,"topics":["golang","swtpm","testing","tpm2"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Foxboron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-02-26T21:39:54.000Z","updated_at":"2023-07-13T12:56:27.000Z","dependencies_parsed_at":"2024-01-30T16:07:02.880Z","dependency_job_id":null,"html_url":"https://github.com/Foxboron/swtpm_test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Foxboron/swtpm_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxboron%2Fswtpm_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxboron%2Fswtpm_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxboron%2Fswtpm_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxboron%2Fswtpm_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Foxboron","download_url":"https://codeload.github.com/Foxboron/swtpm_test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxboron%2Fswtpm_test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263385728,"owners_count":23458744,"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":["golang","swtpm","testing","tpm2"],"created_at":"2024-10-15T14:51:02.949Z","updated_at":"2025-07-03T19:07:21.273Z","avatar_url":"https://github.com/Foxboron.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"swtpm_test\n==========\n\nSmall library to setup a user-accessible swtpm instance.\n\nUsefull for writing test-suites that involves TPMs.\n\n```go\nfunc main() {\n\tdir, err := os.MkdirTemp(\"/var/tmp\", \"example\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tdefer os.RemoveAll(dir) // clean up\n\n\ttpm := swtpm.NewSwtpm(dir)\n\tsocket, err := tpm.Socket()\n\tif err != nil {\n\t\tlog.Fatal(\"failed socket\", err)\n\t}\n\tdefer tpm.Stop()\n\n\tif _, err := tpm2.OpenTPM(socket); err != nil {\n\t\tlog.Fatal(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxboron%2Fswtpm_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxboron%2Fswtpm_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxboron%2Fswtpm_test/lists"}