Closed Tyrion3000 closed 2 months ago
What command is running when this happens?
the command was written in developer visual studio 2019 as:
build.sh generate -configuration Release -platform x64
same as was in the Documentation and then this pops up in the terminal
the command was written in developer visual studio 2019 as:
build.sh generate -configuration Release -platform x64
same as was in the documentation and then this pops up in the terminal
Can you set set -x
on top of the build script and paste the output?
How or where exactly should I write out set-x
? in the build.sh script or the command prompt?
Change this line to set -ex
: https://github.com/mono/CppSharp/blob/main/build/build.sh#L2
this is the terminal output:
` [main 2024-10-02T07:19:41.843Z] update#setState idle [9696:1002/031946.776:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [10004:1002/031947.111:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[9696:1002/031947.115:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031947.761:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/031947.940:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031948.713:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/031949.068:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031951.032:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [10004:1002/031952.849:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[9696:1002/031952.851:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031953.900:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/031954.209:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031958.271:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031958.670:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/031958.772:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/032005.901:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/032006.401:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [9696:1002/032008.461:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [9696:1002/032009.909:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/032010.408:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [9696:1002/032010.757:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [main 2024-10-02T07:20:11.855Z] update#setState checking for updates [main 2024-10-02T07:20:12.070Z] update#setState idle [9696:1002/032012.684:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/032013.136:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [9696:1002/032016.624:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/032032.193:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/032034.734:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/032034.804:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -100 [9696:1002/032034.934:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [10004:1002/032052.792:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[9696:1002/032052.793:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [9696:1002/032053.979:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [9696:1002/032057.663:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 `
I also wish to mention that anytime the command is entered into the prompt, command prompt or developer powershell, VSCode will be started
That output is not really what I am expecting to see. Is nothing else printed when you run build.sh
with the verbose flag above?
That error seems related to Chrome code? Maybe related to VS Code running as you said instead?
Either way this doesn't seem CppSharp related, build.sh
is a shell script, you should be running this with Bash.
Maybe try with bash from https://git-scm.com/downloads/win.
UPDATE: I used the git bash I had already installed with the command and it has completed the build. apparently, there may have possibly been a problem with a visual studio terminal environment variables that I didn't implement correctly and/or account for. I apologize for the bother but CppSharp.sln has been built and completed.
I have managed to solve the problem somewhat. if it's okay, you can close the issue now
Brief Description
Cannot build CppSharp Library due to unforseen ssl cert problem
OS: Windows 10
Used headers
N/A
Used settings
Target: MSVC/GCC/Clang
Brief Description
Cannot build the library because of SSL error
OS: Windows 10
Target: MSVC (visual C++ 2015 - 2022)
%USERPROFILE%\source\repos\CppSharp\build> [main 2024-10-02T00:51:38.365Z] update#setState idle [8004:1001/205143.063:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205143.203:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205143.228:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[13524:1001/205143.239:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [8004:1001/205143.416:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205143.545:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205143.572:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[13524:1001/205143.611:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205143.643:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205143.647:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205144.293:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [8004:1001/205145.152:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205145.233:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205145.233:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[13524:1001/205145.234:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205145.516:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205145.896:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205147.332:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205147.568:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205147.882:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205149.946:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205150.177:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205154.978:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205155.275:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205155.508:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205202.259:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205202.273:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205202.690:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [main 2024-10-02T00:52:08.385Z] update#setState checking for updates [main 2024-10-02T00:52:08.602Z] update#setState idle [13524:1001/205211.899:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205212.998:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205227.257:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205228.574:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205228.834:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205250.276:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [8004:1001/205253.147:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205253.192:ERROR:cert_issuer_source_aia.cc(136)] AiaRequest::OnFetchCompleted got error -379 [8004:1001/205253.193:ERROR:cert_verify_proc_builtin.cc(1052)] CertVerifyProcBuiltin for doh.xfinity.com failed: ----- Certificate i=0 (CN=doh.xfinity.com,O=Comcast Corporation,ST=Pennsylvania,C=US) ----- ERROR: Time is after notAfter
[13524:1001/205253.194:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205324.492:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205327.697:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205412.867:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205423.918:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205528.280:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205541.404:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205541.694:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -201 [13524:1001/205746.821:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [13524:1001/205754.915:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [13524:1001/205805.867:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101 [13524:1001/205813.970:ERROR:ssl_client_socket_impl.cc(879)] handshake failed; returned -1, SSL error code 1, net_error -101