{"id":19096568,"url":"https://github.com/sapcc/go-certcentral","last_synced_at":"2025-04-30T14:14:21.999Z","repository":{"id":53677702,"uuid":"279649594","full_name":"sapcc/go-certcentral","owner":"sapcc","description":"GoLang client for the DigiCert cert-central API.","archived":false,"fork":false,"pushed_at":"2023-12-15T02:31:46.000Z","size":26,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":39,"default_branch":"master","last_synced_at":"2024-06-21T15:45:43.001Z","etag":null,"topics":["cert-central","digicert","digicert-certificate","golang-client"],"latest_commit_sha":null,"homepage":"","language":"Go","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/sapcc.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":"2020-07-14T17:23:34.000Z","updated_at":"2024-02-10T17:54:42.000Z","dependencies_parsed_at":"2024-06-21T14:22:53.651Z","dependency_job_id":"d8120018-5fa5-42b5-8536-0284396a69f2","html_url":"https://github.com/sapcc/go-certcentral","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fgo-certcentral","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fgo-certcentral/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fgo-certcentral/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fgo-certcentral/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapcc","download_url":"https://codeload.github.com/sapcc/go-certcentral/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223783429,"owners_count":17201900,"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":["cert-central","digicert","digicert-certificate","golang-client"],"created_at":"2024-11-09T03:37:06.512Z","updated_at":"2025-04-18T15:33:51.224Z","avatar_url":"https://github.com/sapcc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-certcentral\n--------------\n\n[![REUSE status](https://api.reuse.software/badge/github.com/sapcc/go-certcentral)](https://api.reuse.software/info/github.com/sapcc/go-certcentral)\n\nGoLang client for the [DigiCert cert-central services API](https://dev.digicert.com/services-api).\n\n\n# Usage\n\n```go\nimport cc \"github.com/sapcc/go-certcentral\"\n\nclient, err := cc.New(\u0026cc.Options{\n  Token: \"DIGICERT_API_TOKEN\",\n  IsDebug: false,\n})\nhandleError(err)\n\n// Submit a certificate order.\norderResponse, err := cli.SubmitOrder(\n  cc.Order{\n    Certificate: cc.Certificate{\n      CommonName:     csr.Subject.CommonName,\n      DNSNames:       csr.DNSNames,\n      CSR:            csr.PEM,\n      ServerPlatform: cc.ServerPlatformForType(cc.ServerPlatformTypes.Nginx),\n      SignatureHash:  cc.SignatureHashes.SHA256,\n      CaCertID:       \"CACertID\",\n      OrganizationUnits: []string{\n        \"SomeOrganization \",\n      },\n    },\n    OrderValidity:               cc.OrderValidity{Years: 1},\n    DisableRenewalNotifications: true,\n    PaymentMethod:               cc.PaymentMethods.Balance,\n    SkipApproval:                true,\n    Organization:                \u0026cc.Organization{ID: 123456},\n}, cc.OrderTypes.PrivateSSLPlus)\nhandleError(err)\n\n// If auto-approval is allowed the response contains the full chain of certificates in PEM format. \nif len(orderResponse.CertificateChain) \u003e 0 {\n  crtChain, err := orderResponse.DecodeCertificateChain()\n  handleError(err)\n\n  for _, crt := range crtChain {\n    fmt.Println(crt.Subject.CommonName)\n  }\n}\n\n// Download the certificate(s) for an order.\ncertList, err := client.DownloadCertificateForOrder(\"123456\", cc.CertificateFormats.PEMAll)\nhandlerError(err)\nfor _, cert := range certList {\n  fmt.Println(cert.Subject.CommonName)\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fgo-certcentral","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapcc%2Fgo-certcentral","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fgo-certcentral/lists"}