{"id":20238450,"url":"https://github.com/smallstep/scep","last_synced_at":"2025-04-06T03:06:16.634Z","repository":{"id":153671635,"uuid":"617661225","full_name":"smallstep/scep","owner":"smallstep","description":"Go SCEP server","archived":false,"fork":false,"pushed_at":"2025-03-18T23:12:41.000Z","size":381,"stargazers_count":30,"open_issues_count":1,"forks_count":8,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-30T02:04:15.580Z","etag":null,"topics":[],"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/smallstep.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-03-22T21:05:08.000Z","updated_at":"2025-03-29T05:26:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"076a2edc-2015-4361-82bf-ba9b1186c06f","html_url":"https://github.com/smallstep/scep","commit_stats":{"total_commits":199,"total_committers":30,"mean_commits":6.633333333333334,"dds":0.6130653266331658,"last_synced_commit":"a37a330173bcdfa87c08f364a46eef8db65715be"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstep%2Fscep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstep%2Fscep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstep%2Fscep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smallstep%2Fscep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smallstep","download_url":"https://codeload.github.com/smallstep/scep/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427005,"owners_count":20937200,"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":[],"created_at":"2024-11-14T08:34:13.936Z","updated_at":"2025-04-06T03:06:16.611Z","avatar_url":"https://github.com/smallstep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scep\n\n`scep` is a Golang implementation of the Simple Certificate Enrollment Protocol (SCEP).\n\nThis package started its life as part of [micromdm/scep](https://github.com/micromdm/scep). \nThe core SCEP protocol was extracted from it and is now being maintained by [smallstep](https://smallstep.com).\n\n## Usage\n\n```console\ngo get github.com/smallstep/scep\n```\n\nThe package can be used for both client and server operations.\n\nFor detailed usage, see the [Go Reference](https://pkg.go.dev/github.com/smallstep/scep).\n\nExample server:\n\n```go\n// read a request body containing SCEP message\nbody, err := ioutil.ReadAll(r.Body)\nif err != nil {\n    // handle err\n}\n\n// parse the SCEP message\nmsg, err := scep.ParsePKIMessage(body)\nif err != nil {\n    // handle err\n}\n\n// do something with msg\nfmt.Println(msg.MessageType)\n\n// extract encrypted pkiEnvelope\nerr := msg.DecryptPKIEnvelope(CAcert, CAkey)\nif err != nil {\n    // handle err\n}\n\n// use the CSR from decrypted PKCS request and sign\n// MyCSRSigner returns an *x509.Certificate here\ncrt, err := MyCSRSigner(msg.CSRReqMessage.CSR)\nif err != nil {\n    // handle err\n}\n\n// create a CertRep message from the original\ncertRep, err := msg.Success(CAcert, CAkey, crt)\nif err != nil {\n    // handle err\n}\n\n// send response back\n// w is a http.ResponseWriter\nw.Write(certRep.Raw)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallstep%2Fscep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmallstep%2Fscep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmallstep%2Fscep/lists"}