You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The certificate validation process in the cp-demo script is failing on MacOS due to the wc command behavior which includes leading spaces in its output. Additionally, the current implementation check_num_certs() uses a non-standard return code convention (1 for success, 0 for failure) which can lead to confusion and maintenance issues.
This causes the script to unnecessarily regenerate cryptographic material even when valid certificates exist, significantly impacting the development workflow.
Troubleshooting
I validated that this issue occurs by:
Following the standard setup procedure from the documentation
Observing that even with valid certificates, the script triggers regeneration
Investigating the check_num_certs function output on MacOS:
$ echo"trusted"| wc -l
1
vs Linux:
$ echo"trusted"| wc -l
1
The leading spaces in the MacOS output cause the numeric comparison to fail, triggering certificate regeneration.
Description
The certificate validation process in the cp-demo script is failing on MacOS due to the
wc
command behavior which includes leading spaces in its output. Additionally, the current implementationcheck_num_certs()
uses a non-standard return code convention (1 for success, 0 for failure) which can lead to confusion and maintenance issues.This causes the script to unnecessarily regenerate cryptographic material even when valid certificates exist, significantly impacting the development workflow.
Troubleshooting
I validated that this issue occurs by:
check_num_certs
function output on MacOS:vs Linux:
The leading spaces in the MacOS output cause the numeric comparison to fail, triggering certificate regeneration.
Related issues:
Proposed Solution
Key changes:
xargs
to trim whitespace fromwc
outputEnvironment
The text was updated successfully, but these errors were encountered: