{"id":13871864,"url":"https://github.com/apple/swift-certificates","last_synced_at":"2025-05-16T02:08:00.153Z","repository":{"id":111425076,"uuid":"550482660","full_name":"apple/swift-certificates","owner":"apple","description":"An implementation of X.509 for Swift","archived":false,"fork":false,"pushed_at":"2025-05-14T07:20:48.000Z","size":1172,"stargazers_count":246,"open_issues_count":6,"forks_count":73,"subscribers_count":103,"default_branch":"main","last_synced_at":"2025-05-14T08:30:02.372Z","etag":null,"topics":["certificates","swift","x509"],"latest_commit_sha":null,"homepage":"https://swiftpackageindex.com/apple/swift-certificates/main/documentation/x509","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apple.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-10-12T21:02:32.000Z","updated_at":"2025-05-14T07:20:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"7679c234-01a7-4e80-b8f7-b74eba7ede24","html_url":"https://github.com/apple/swift-certificates","commit_stats":{"total_commits":84,"total_committers":5,"mean_commits":16.8,"dds":0.5119047619047619,"last_synced_commit":"55105af86bfc4dbd3a81a589a7428d6f9cece63a"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-certificates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-certificates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-certificates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apple%2Fswift-certificates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apple","download_url":"https://codeload.github.com/apple/swift-certificates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453653,"owners_count":22073617,"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":["certificates","swift","x509"],"created_at":"2024-08-05T23:00:28.558Z","updated_at":"2025-05-16T02:08:00.128Z","avatar_url":"https://github.com/apple.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# swift-certificates\n\nA library for working with X.509 certificates.\n\n## Overview\n\nX.509 certificates are a commonly-used identity format to cryptographically\nattest to the identity of an actor in a system. They form part of the X.509\nstandard created by the ITU-T for defining a public key infrastructure (PKI).\nX.509-style PKIs are commonly used in cases where it is necessary to delegate\nthe authority to attest to an actor's identity to a small number of trusted\nparties (called Certificate Authorities).\n\nThe most common usage of X.509 certificates today is as part of the WebPKI,\nwhere they are used to secure TLS connections to websites. X.509 certificates\nare also used in a wide range of other TLS-based communications, as well as\nin code signing infrastructure.\n\nThis module makes it possible to serialize, deserialize, create, and interact\nwith X.509 certificates. This is an essential building-block for a wide range\nof PKI applications. It enables building verifiers, interacting with\ncertificate authorities, authenticating peers, and more. It also ships with\na default verifier and a number of built-in verifier policies.\n\n## Supported Swift Versions\n\nThis library will support the latest stable Swift version and the two versions prior.\n\n## Getting Started\n\nTo use swift-certificates, add the following dependency to your Package.swift:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/apple/swift-certificates.git\", .upToNextMajor(from: \"1.0.0\"))\n]\n```\n\nYou can then add the specific product dependency to your target:\n\n```swift\ndependencies: [\n    .product(name: \"X509\", package: \"swift-certificates\"),\n]\n```\n\nFor detailed usage and API documentation, check [the documentation](https://swiftpackageindex.com/apple/swift-certificates/main/documentation/x509).\n\n## Benchmarks\n\nBenchmarks for `swift-certificates` are in a separate Swift Package in the `Benchmarks` subfolder of this repository. \nThey use the [`package-benchmark`](https://github.com/ordo-one/package-benchmark) plugin.\nBenchmarks depends on the [`jemalloc`](https://jemalloc.net) memory allocation library, which is used by `package-benchmark` to capture memory allocation statistics.\nAn installation guide can be found in the [Getting Started article](https://swiftpackageindex.com/ordo-one/package-benchmark/documentation/benchmark/gettingstarted#Installing-Prerequisites-and-Platform-Support) of `package-benchmark`. \nAfterwards you can run the benchmarks from CLI by going to the `Benchmarks` subfolder (e.g. `cd Benchmarks`) and invoking:\n```\nswift package benchmark\n```\n\nFor more information please refer to `swift package benchmark --help` or the [documentation of `package-benchmark`](https://swiftpackageindex.com/ordo-one/package-benchmark/documentation/benchmark). \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapple%2Fswift-certificates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapple%2Fswift-certificates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapple%2Fswift-certificates/lists"}