Skip to content

Commit

Permalink
Return error from Sign correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dvob committed Jul 1, 2020
1 parent c2b175b commit 4b0dbf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func CreateWithKeyOptions(cert *x509.Certificate, keyOptions KeyOptions, signCer
}
return nil, nil, fmt.Errorf("private key for signing missing")
}
return certPEM, keyPEM, nil
return certPEM, keyPEM, err
}

// Sign set some defaults on a certificate and signs it with the signCert and
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package provides the following main functions:
- Request: creates a CSR and a key
- Sign: signs a certificate or a CSR with an existing certificate and key
The results of the functions which return certificats, CSRs and keys are all
The results of the functions which return certificates, CSRs and keys are all
PEM encoded.
All functions without special suffix refer to a certificates. Functions for CSR
Expand Down

0 comments on commit 4b0dbf2

Please sign in to comment.