Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate error with v6 tasks #299

Closed
dixy opened this issue Mar 16, 2023 · 2 comments · Fixed by #308
Closed

Certificate error with v6 tasks #299

dixy opened this issue Mar 16, 2023 · 2 comments · Fixed by #308

Comments

@dixy
Copy link

dixy commented Mar 16, 2023

I try to migrate v5 tasks to v6, but there is an error during the connection to the Octopus Deploy server.

2023-03-15T10:39:48.5790955Z ##[section]Starting: Push Package to Octopus
2023-03-15T10:39:48.6089532Z ==============================================================================
2023-03-15T10:39:48.6089809Z Task         : Push Package(s) to Octopus
2023-03-15T10:39:48.6090098Z Description  : Push your NuGet or Zip package to your Octopus Deploy Server. **v6 of this step requires Octopus 2022.3+**
2023-03-15T10:39:48.6090376Z Version      : 6.0.502
2023-03-15T10:39:48.6090540Z Author       : Octopus Deploy
2023-03-15T10:39:48.6090776Z Help         : Version: 6.0.502. [More Information](https://g.octopushq.com/TFS-VSTS)
2023-03-15T10:39:48.6091058Z ==============================================================================
2023-03-15T10:39:48.9160922Z ##[error]"Failed to execute push. unable to get local issuer certificate
Error: unable to get local issuer certificate
    at Function.ae.from (F:\agent3\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.502\index.js:42:13882)
    at en.<anonymous> (F:\agent3\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.502\index.js:44:10223)
    at en.emit (node:events:527:28)
    at ClientRequest.Tf.<computed> (F:\agent3\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.502\index.js:42:738)
    at ClientRequest.emit (node:events:527:28)
    at TLSSocket.socketErrorListener (node:_http_client:454:9)
    at TLSSocket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2023-03-15T10:39:48.9252160Z ##[section]Finishing: Push Package to Octopus

The certificate used on the Octopus Deploy server is signed by an internal CA.

Currently it is not possible to provide a CA file in Octo tasks, maybe a parameter that contains a path to a CA file on the server will help.

@benPearce1
Copy link
Contributor

@dixy where is the agent located for this failed task? internal or Microsoft hosted?

@dixy
Copy link
Author

dixy commented Apr 19, 2023

@benPearce1 the agent is on an internal server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants