Skip to content

Commit

Permalink
add more logs to the sign cert flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Sucharevich committed Mar 5, 2019
1 parent 56e988e commit 042fd39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "venona",
"version": "0.18.0",
"version": "0.19.0",
"description": "Codefresh agent to run on Codefresh's runtime environment and execute pipeline",
"main": "index.js",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions venonactl/pkg/codefresh/cfapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,20 @@ func (a *api) Sign() (*certs.ServerCert, error) {
AltName: certExtraSANs,
CSR: serverCert.Csr,
})
if err != nil {
a.logger.Debug("Failed to sign certificate")
return nil, err
}

a.logger.Debug("Certificate was signed")
respBodyReaderAt := bytes.NewReader(byteArray)
zipReader, err := zip.NewReader(respBodyReaderAt, int64(len(byteArray)))
if err != nil {
a.logger.Debug("Failed to create zip reader from given certificate")
return nil, err
}
for _, zf := range zipReader.File {
a.logger.Debug("Reading file ", "name", zf.Name)
buf := new(bytes.Buffer)
src, _ := zf.Open()
defer src.Close()
Expand Down

0 comments on commit 042fd39

Please sign in to comment.