mirror of
https://github.com/SignTools/SignTools.git
synced 2026-04-26 10:25:54 +03:00
[GH-ISSUE #174] "Cert has expired" error - but has not... #63
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SignTools#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xanthos84 on GitHub (Mar 4, 2022).
Original GitHub issue: https://github.com/SignTools/SignTools/issues/174
I tried basic troubleshooting first
yep
Describe the bug
Getting this error/output during signing process from github ci:
`Run sudo xcode-select -s /Applications/Xcode_12.5.1.app
Initializing dependencies...
Obtaining files...
node:events:498
throw er; // Unhandled 'error' event
^
Error: certificate has expired
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:520:28)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:725:12)
Emitted 'error' event on Request instance at:
at Request.onerror (node:internal/streams/legacy:62:12)
at Request.emit (node:events:520:28)
at Request.onRequestError (/Users/runner/work/signTools/signTools/node-utils/node_modules/request/request.js:877:8)
at ClientRequest.emit (node:events:520:28)
at TLSSocket.socketErrorListener (node:_http_client:442:9)
at TLSSocket.emit (node:events:520: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) {
code: 'CERT_HAS_EXPIRED'
}
Traceback (most recent call last):
File "/Users/runner/work/signTools/signTools/util.py", line 27, in run_process
result = subprocess.run(cmd, capture_output=capture, check=check, env=env, cwd=cwd, timeout=timeout)
File "/usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('node', 'node-utils/download.js', '/jobs', '', 'job.tar')' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/runner/work/signTools/signTools/sign.py", line 373, in
node_download(secret_url + "/jobs", job_archive, capture=False)
File "/Users/runner/work/signTools/signTools/sign.py", line 26, in node_download
return run_process(
File "/Users/runner/work/signTools/signTools/util.py", line 29, in run_process
raise (
Exception: {'stdout': '', 'stderr': ''}
Error: Process completed with exit code 1.`
Expected behavior
signing should be going on well - as the cert.p12 and prov.mobileprovision were freshly created from xcode 10 on mac.
System configuration
Additional context
I am not sure why this happens... if I try to build a app in xcode its working very well without errors.
I checked the expiration dates multiple times of the certificate, but as it was created today - its of course still one year valid.
any clues for me? :)
@ViRb3 commented on GitHub (Mar 4, 2022):
The HTTPS certificate you used for the SignTools service has expired, this has nothing to do with your Apple Developer certificate. It simply fails to communicate to your service and download the IPA and related files.
@xanthos84 commented on GitHub (Mar 5, 2022):
you were so right. i was so focused on the ios certifcate that I was not thinking about the website ssl...
and i did not think about that it was relevant at all.
thanks for the hint! now its working great!