Replies: 1 comment
-
I figured this out. I had to set permissions for Users to full control and then insert the correct organizational cert into the jdk cacerts. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't seem to find the issue with this one and I'm hoping someone can help. I have a react-native Expo app setup in a nx project on a Windows 11 machine. The app is nothing more than a blank App.tsx. But when I try to run it using the
nx run-android
command I get this:.
.
.
› Building app...
Downloading https://services.gradle.org/distributions/gradle-8.10.2-all.zip
Exception in thread "main" javax.net.ssl.SSLHandshakeException: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:130)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:383)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:326)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1326)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1203)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1146)
at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:393)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:476)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:447)
at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:206)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1507)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1422)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:455)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:426)
at java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:586)
.
.
.
Error: C:\iops-ex\oshkosh\app\apps\clearsky-intelligence\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
Error: C:\iops-ex\oshkosh\app\apps\clearsky-intelligence\android\gradlew.bat app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64,arm64-v8a exited with non-zero code: 1
at ChildProcess.completionListener (C:\iops-ex\oshkosh\app\node_modules@expo\spawn-async\src\spawnAsync.ts:67:13)
at Object.onceWrapper (node:events:622:26)
at ChildProcess.emit (node:events:507:28)
at ChildProcess.cp.emit (C:\iops-ex\oshkosh\app\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1101:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5)
...
at spawnAsync (C:\iops-ex\oshkosh\app\node_modules@expo\spawn-async\src\spawnAsync.ts:28:21)
at spawnGradleAsync (C:\iops-ex\oshkosh\app\node_modules\expo\node_modules@expo\cli\src\start\platforms\android\gradle.ts:134:28)
at assembleAsync (C:\iops-ex\oshkosh\app\node_modules\expo\node_modules@expo\cli\src\start\platforms\android\gradle.ts:83:16)
at runAndroidAsync (C:\iops-ex\oshkosh\app\node_modules\expo\node_modules@expo\cli\src\run\android\runAndroidAsync.ts:48:24)
Warning: command "expo run:android" exited with non-zero status code
———————————————————————————————————————————————————————————
NX Ran target run-android for project ... (3s)
× 1/1 failed
√ 0/1 succeeded [0 read from cache]
NX Nx Cloud Problems
SELF_SIGNED_CERT_IN_CHAIN: Found a self-signed cert in certificate chain. Ensure you have verified trust for all certs in your network. (code: SELF_SIGNED_CERT_IN_CHAIN)
I have removed every self-signed cert out of my store that I know can remove safely using the Windows mmc app. I have uninstalled and installed the Android Studio and the jdk-23 a couple of times. I even rebooted. JAVA_HOME and ANDROID_HOME are set properly.
Any suggestions? At this point I don't even know if this is a nx issue. It feels like a Java SDK issue. But I can't find the solution. Android Studio runs just fine and I'm able to start emulators just fine.
Beta Was this translation helpful? Give feedback.
All reactions