Skip to content

Commit

Permalink
Merge pull request #1 from sfc-gh-bcollins/neworders
Browse files Browse the repository at this point in the history
Add additional order types
  • Loading branch information
auhlig committed Mar 1, 2021
2 parents ef822af + 71577c1 commit 239545c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ go-certcentral

GoLang client for the [DigiCert cert-central services API](https://dev.digicert.com/services-api).


# Usage

```go
import certcentral "github.com/sapcc/go-certcentral"
import cc "github.com/sapcc/go-certcentral"

client, err := cc.New(&cc.Options{
Token: "DIGICERT_API_TOKEN",
Expand All @@ -20,7 +21,7 @@ orderResponse, err := cli.SubmitOrder(
Certificate: cc.Certificate{
CommonName: csr.Subject.CommonName,
DNSNames: csr.DNSNames,
CSR: csrPEM,
CSR: csr.PEM,
ServerPlatform: cc.ServerPlatformForType(cc.ServerPlatformTypes.Nginx),
SignatureHash: cc.SignatureHashes.SHA256,
CaCertID: "CACertID",
Expand Down Expand Up @@ -53,4 +54,5 @@ for _, cert := range certList {
fmt.Println(cert.Subject.CommonName)
}

```
```

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.5
v1.2.6
4 changes: 4 additions & 0 deletions order.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func (o OrderType) String() string {

var OrderTypes = struct {
SSLPlus,
SSLMultiDomain,
SSLWildcard,
PrivateSSLPlus,
PrivateSSLWildcard,
SecureSiteProSSL,
Expand All @@ -28,6 +30,8 @@ var OrderTypes = struct {
SecureSiteEV OrderType
}{
"ssl_plus",
"ssl_multi_domain",
"ssl_wildcard",
"private_ssl_plus",
"private_ssl_wildcard",
"ssl_securesite_pro",
Expand Down

0 comments on commit 239545c

Please sign in to comment.