bepass-org / warp-plus

Warp+Psiphon, an anti censorship utility for iran
MIT License
1.49k stars 252 forks source link

error x509 #146

Open pars1500 opened 3 months ago

pars1500 commented 3 months ago

1.2.3 Error x509 :

Android tvbox Model: Netbox shine s

CPU: Allwinner H618 quad-core Arm Cortex-A53 processor @ up to 1.5GHz with Arm Mali-G31 MP2 GPU

markpash commented 3 months ago

Hi, can you provide some logs please? I've not seen this error before and it would be helpful to see the logs.

nescafetor commented 3 months ago

با سلام مارک عزیز، قبل از هرچیزی تشکر میکنم از بابت همه زحمتایی ک می‌کشی

بعد میخواستم بگم ک من و دو نفر از دوستانم این مشکل رو داریم، دقیقا همین خطا که الان برات میفرستم اسکرین شات ازش، به نظر من خطای certificate دستگاه میومد یکی از گوشی ها اندروید 12 بود روی اون هم همین مشکل پیش اومد فقط روی اندروید 14 مشکلی نداشتم، حتی چندتا certificate مثل کلودفلر و موزیلا هم نصب کردم ولی تاثیری نداشت، من حدس میزنم بخاطر اختلاف یکساعته در تنظیمات ساعت و تاریخ دستگاه باشه، امسال عید ساعت ها به جلو کشیده نشد در ایران ولی دوتا گوشی من خودشون یکساعت جلوتر رفتن و الان ایران 3:30+ باید میبود ولی تو گوشی4:30+ هست، دستی تنطیم میکنم هم مشکل رفع نمیشه. امیدوارم بشه این مشکل رو حل کرد و دوباره از وارپ پلاس فوق العاده استفاده کرد، در این نسخه و نسخه قبل یعنی v1.2.2 این مشکل به وجود اومده، ممنونم ازتون ❤️

Screenshot_20240601-051601_cropped

$warp
WARNING:: linker: warp: unsupported flags DT_FLAGS_1=0x8000000
time=2024-06-01T00:45:40.037Z level=INFO msg="using warp endpoints" endpoints="[[2606:4700:d1:0:5c57:6938:61f6:e3e9]:2506 [2606:4700:d1:0:5c57:6938:61f6:e3e9]:2506]"
time=2024-06-01T00:45:40.038Z level=INFO msg="running in normal warp mode"
time=2024-06-01T00:45:40.052Z level=INFO msg="failed to load identity" subsystem=warp/account path=/data/data/com.termux/files/home/.cache/warp-plus/primary error="stat /data/data/com.termux/files/home/.cache/warp-plus/primary/wgcf-identity.json: no such file or directory"
time=2024-06-01T00:45:40.068Z level=INFO msg="creating new identity" subsystem=warp/account
time=2024-06-01T00:45:44.077Z level=ERROR msg="couldn't load primary warp identity"
time=2024-06-01T00:45:44.078Z level=ERROR msg="Post \"https://api.cloudflareclient.com/v0a4005/reg\": uTlsConn.Handshake() error: x509: certificate has expired or is not yet valid: current time 2024-06-01T00:45:43Z is after 2021-09-30T14:01:15Z"

$ warp --gool
WARNING: linker: warp: unsupported flags DT_FLAGS_1=0x8000000
time=2024-06-01T00:45:53.403Z level=INFO msg="using warp endpoints" endpoints="[162.159.195.80:8854 162.159.195.80:8854]"
time=2024-06-01T00:45:53.404Z level=INFO msg="running in warp-in-warp (gool) mode"
time=2024-06-01T00:45:53.404Z level=INFO msg="failed to load identity" subsystem=warp/account path=/data/data/com.termux/files/home/.cache/warp-plus/primary error="stat /data/data/com.termux/files/home/.cache/warp-plus/primary/wgcf-identity.json: no such file or directory"
time=2024-06-01T00:45:53.406Z level=INFO msg="creating new identity" subsystem=warp/account
time=2024-06-01T00:45:55.277Z level=ERROR msg="couldn't load primary warp identity"
time=2024-06-01T00:45:55.278Z level=ERROR msg="Post \"https://api.cloudflareclient.com/v0a4005/reg\": uTlsConn.Handshake() error: x509: certificate has expired or is not yet valid: current time 2024-06-01T00:45:55Z is after 2021-09-30T14:01:15Z
markpash commented 3 months ago

با سلام مارک عزیز، قبل از هرچیزی تشکر میکنم از بابت همه زحمتایی ک می‌کشی

بعد میخواستم بگم ک من و دو نفر از دوستانم این مشکل رو داریم، دقیقا همین خطا که الان برات میفرستم اسکرین شات ازش، به نظر من خطای certificate دستگاه میومد یکی از گوشی ها اندروید 12 بود روی اون هم همین مشکل پیش اومد فقط روی اندروید 14 مشکلی نداشتم، حتی چندتا certificate مثل کلودفلر و موزیلا هم نصب کردم ولی تاثیری نداشت، من حدس میزنم بخاطر اختلاف یکساعته در تنظیمات ساعت و تاریخ دستگاه باشه، امسال عید ساعت ها به جلو کشیده نشد در ایران ولی دوتا گوشی من خودشون یکساعت جلوتر رفتن و الان ایران 3:30+ باید میبود ولی تو گوشی4:30+ هست، دستی تنطیم میکنم هم مشکل رفع نمیشه. امیدوارم بشه این مشکل رو حل کرد و دوباره از وارپ پلاس فوق العاده استفاده کرد، در این نسخه و نسخه قبل یعنی v1.2.2 این مشکل به وجود اومده، ممنونم ازتون ❤️

Screenshot_20240601-051601_cropped

$warp
WARNING:: linker: warp: unsupported flags DT_FLAGS_1=0x8000000
time=2024-06-01T00:45:40.037Z level=INFO msg="using warp endpoints" endpoints="[[2606:4700:d1:0:5c57:6938:61f6:e3e9]:2506 [2606:4700:d1:0:5c57:6938:61f6:e3e9]:2506]"
time=2024-06-01T00:45:40.038Z level=INFO msg="running in normal warp mode"
time=2024-06-01T00:45:40.052Z level=INFO msg="failed to load identity" subsystem=warp/account path=/data/data/com.termux/files/home/.cache/warp-plus/primary error="stat /data/data/com.termux/files/home/.cache/warp-plus/primary/wgcf-identity.json: no such file or directory"
time=2024-06-01T00:45:40.068Z level=INFO msg="creating new identity" subsystem=warp/account
time=2024-06-01T00:45:44.077Z level=ERROR msg="couldn't load primary warp identity"
time=2024-06-01T00:45:44.078Z level=ERROR msg="Post \"https://api.cloudflareclient.com/v0a4005/reg\": uTlsConn.Handshake() error: x509: certificate has expired or is not yet valid: current time 2024-06-01T00:45:43Z is after 2021-09-30T14:01:15Z"

$ warp --gool
WARNING: linker: warp: unsupported flags DT_FLAGS_1=0x8000000
time=2024-06-01T00:45:53.403Z level=INFO msg="using warp endpoints" endpoints="[162.159.195.80:8854 162.159.195.80:8854]"
time=2024-06-01T00:45:53.404Z level=INFO msg="running in warp-in-warp (gool) mode"
time=2024-06-01T00:45:53.404Z level=INFO msg="failed to load identity" subsystem=warp/account path=/data/data/com.termux/files/home/.cache/warp-plus/primary error="stat /data/data/com.termux/files/home/.cache/warp-plus/primary/wgcf-identity.json: no such file or directory"
time=2024-06-01T00:45:53.406Z level=INFO msg="creating new identity" subsystem=warp/account
time=2024-06-01T00:45:55.277Z level=ERROR msg="couldn't load primary warp identity"
time=2024-06-01T00:45:55.278Z level=ERROR msg="Post \"https://api.cloudflareclient.com/v0a4005/reg\": uTlsConn.Handshake() error: x509: certificate has expired or is not yet valid: current time 2024-06-01T00:45:55Z is after 2021-09-30T14:01:15Z

درود، مرسی بابت لاگ. میشه بپرسم که با کدوم اپراتور این رو تست کردی؟

nescafetor commented 3 months ago

بله البته، من با نت ثابت مخابرات این تست رو کردم و لاگ مربوط به همون هست.

pars1500 commented 3 months ago

Hi, can you provide some logs please? I've not seen this error before and it would be helpful to see the logs.

335768940-9f0960b8-c2f2-42a2-8ebd-e28336b708df

pars1500 commented 3 months ago

با سلام مارک عزیز، قبل از هرچیزی تشکر میکنم از بابت همه زحمتایی ک می‌کشی

بعد میخواستم بگم ک من و دو نفر از دوستانم این مشکل رو داریم، دقیقا همین خطا که الان برات میفرستم اسکرین شات ازش، به نظر من خطای certificate دستگاه میومد یکی از گوشی ها اندروید 12 بود روی اون هم همین مشکل پیش اومد فقط روی اندروید 14 مشکلی نداشتم، حتی چندتا certificate مثل کلودفلر و موزیلا هم نصب کردم ولی تاثیری نداشت، من حدس میزنم بخاطر اختلاف یکساعته در تنظیمات ساعت و تاریخ دستگاه باشه، امسال عید ساعت ها به جلو کشیده نشد در ایران ولی دوتا گوشی من خودشون یکساعت جلوتر رفتن و الان ایران 3:30+ باید میبود ولی تو گوشی4:30+ هست، دستی تنطیم میکنم هم مشکل رفع نمیشه. امیدوارم بشه این مشکل رو حل کرد و دوباره از وارپ پلاس فوق العاده استفاده کرد، در این نسخه و نسخه قبل یعنی v1.2.2 این مشکل به وجود اومده، ممنونم ازتون ❤️

Screenshot_20240601-051601_cropped

$warp
WARNING:: linker: warp: unsupported flags DT_FLAGS_1=0x8000000
time=2024-06-01T00:45:40.037Z level=INFO msg="using warp endpoints" endpoints="[[2606:4700:d1:0:5c57:6938:61f6:e3e9]:2506 [2606:4700:d1:0:5c57:6938:61f6:e3e9]:2506]"
time=2024-06-01T00:45:40.038Z level=INFO msg="running in normal warp mode"
time=2024-06-01T00:45:40.052Z level=INFO msg="failed to load identity" subsystem=warp/account path=/data/data/com.termux/files/home/.cache/warp-plus/primary error="stat /data/data/com.termux/files/home/.cache/warp-plus/primary/wgcf-identity.json: no such file or directory"
time=2024-06-01T00:45:40.068Z level=INFO msg="creating new identity" subsystem=warp/account
time=2024-06-01T00:45:44.077Z level=ERROR msg="couldn't load primary warp identity"
time=2024-06-01T00:45:44.078Z level=ERROR msg="Post \"https://api.cloudflareclient.com/v0a4005/reg\": uTlsConn.Handshake() error: x509: certificate has expired or is not yet valid: current time 2024-06-01T00:45:43Z is after 2021-09-30T14:01:15Z"

$ warp --gool
WARNING: linker: warp: unsupported flags DT_FLAGS_1=0x8000000
time=2024-06-01T00:45:53.403Z level=INFO msg="using warp endpoints" endpoints="[162.159.195.80:8854 162.159.195.80:8854]"
time=2024-06-01T00:45:53.404Z level=INFO msg="running in warp-in-warp (gool) mode"
time=2024-06-01T00:45:53.404Z level=INFO msg="failed to load identity" subsystem=warp/account path=/data/data/com.termux/files/home/.cache/warp-plus/primary error="stat /data/data/com.termux/files/home/.cache/warp-plus/primary/wgcf-identity.json: no such file or directory"
time=2024-06-01T00:45:53.406Z level=INFO msg="creating new identity" subsystem=warp/account
time=2024-06-01T00:45:55.277Z level=ERROR msg="couldn't load primary warp identity"
time=2024-06-01T00:45:55.278Z level=ERROR msg="Post \"https://api.cloudflareclient.com/v0a4005/reg\": uTlsConn.Handshake() error: x509: certificate has expired or is not yet valid: current time 2024-06-01T00:45:55Z is after 2021-09-30T14:01:15Z

درود بر شما دوست گرامی ب ای من هم همین ارور میاد

راه حل چیه

انندروید من هم ۱۲ هستش معماری پردازنده ام ARM

inattentive-nerd commented 3 months ago

I think that the problem can be solved by installing the Cloudflare certificate on Termux. https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/user-side-certificates/install-cloudflare-cert/ https://github.com/termux/termux-packages/issues/1546

inattentive-nerd commented 3 months ago

I think that the problem can be solved by installing the Cloudflare certificate on Termux. https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp/user-side-certificates/install-cloudflare-cert/ https://github.com/termux/termux-packages/issues/1546

For some reason I can't install the certificate.

~ $ wget https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.pem
--2024-06-02 20:45:38--  https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.pem
Resolving developers.cloudflare.com (developers.cloudflare.com)... 104.16.6.189, 104.16.4.189, 104.16.5.189, ...
Connecting to developers.cloudflare.com (developers.cloudflare.com)|104.16.6.189|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1073 (1.0K) [application/x-x509-ca-cert]
Saving to: ‘Cloudflare_CA.pem’

Cloudflare_C 100%   1.05K  --.-KB/s    in 0s

2024-06-02 20:45:39 (41.4 MB/s) - ‘Cloudflare_CA.pem’ saved [1073/1073]

~ $ add-trusted-certificate Cloudflare_CA.pem
Copying Cloudflare_CA.pem to /data/data/com.termux/files/usr/etc/tls/certs/
Doing /data/data/com.termux/files/usr/etc/tls/certs/
rehash: warning: skipping Cloudflare_CA.crt,it does not contain exactly one certificate or CRL
link Cloudflare_CA.pem -> c38b367a.0

Update: I submitted an issue on the Termux packages repo. https://github.com/termux/termux-packages/issues/20405

NiREvil commented 3 months ago

سلام وقتتون بخیر، من هم این مشکل رو داشتم امروز یکی دوتا کار صرفا جهت تست انجام دادم و مشکل حل شد فقط نفهمیدم کدومش باعث شد که درست بشه!!

error: x509: certificate has expired or .....

اول از این آدرس این گواهینامه رو کپی کردم تو یه فایل با نام cert.pem داخل فولدر دانلود گوشی، و اون رو منتقل کردم به اینجا با دستور cp

/data/data/com.termux/files/usr/etc/tls/

(نکته اینه که از قبل تو این مسیر یه فایل با همین اسم و محتوا وجود داشت ولی برای سال 2021 بود محض احتیاط از قبل کپی کردمش جای دیگه بعد فایل جدید رو جایگزینش کردم).

و حرکت دوم این بود که چون فولدر

.cache/warp-plus

ساخته نمیشد یا اگر شده بود موقع استارت وارپ پلاس تو متن خطا مینوشت که این مسیر وجود نداره خودمم نمیتونستم پیداش کنم پس دستی ساختمش با mkdir /data/data/com.termux/files/home/.cache/warp-plus

و یه فولدر داخلش به اسم primary ساختم و داخل این فولدر هم دوتا فایلی از فولدر stuff اپلیکیشن oblivion دسکتاپ قرض گرفتم و کپی کردم داخلش منظورم دوتا فایل با اسم های

wgcf-identity.json & wgcf-profile.ini

و بعد یه ریستارت کردن دستگاه و بعد اجرای warp-plus و اقعا هم اجرا شد.وارپ و گول رو تست کردم الان هم با gool هستم فعلا سایفون تست نکردم.

S1

s2

s3

با تشکر از دو بزرگ مرد مارک و یوسف

pars1500 commented 3 months ago

اگر ممکنه به زبان ساده بگید چکار کنیم

کد های دستوری اصلاحات را قرار دهید سپاس

pars1500 commented 3 months ago

سلام وقتتون بخیر، من هم این مشکل رو داشتم امروز یکی دوتا کار صرفا جهت تست انجام دادم و مشکل حل شد فقط نفهمیدم کدومش باعث شد که درست بشه!!

error: x509: certificate has expired or .....

اول از این آدرس این گواهینامه رو کپی کردم تو یه فایل با نام cert.pem داخل فولدر دانلود گوشی، و اون رو منتقل کردم به اینجا با دستور cp

/data/data/com.termux/files/usr/etc/tls/

(نکته اینه که از قبل تو این مسیر یه فایل با همین اسم و محتوا وجود داشت ولی برای سال 2021 بود محض احتیاط از قبل کپی کردمش جای دیگه بعد فایل جدید رو جایگزینش کردم).

و حرکت دوم این بود که چون فولدر

.cache/warp-plus

ساخته نمیشد یا اگر شده بود موقع استارت وارپ پلاس تو متن خطا مینوشت که این مسیر وجود نداره خودمم نمیتونستم پیداش کنم پس دستی ساختمش با mkdir /data/data/com.termux/files/home/.cache/warp-plus

و یه فولدر داخلش به اسم primary ساختم و داخل این فولدر هم دوتا فایلی از فولدر stuff اپلیکیشن oblivion دسکتاپ قرض گرفتم و کپی کردم داخلش منظورم دوتا فایل با اسم های

wgcf-identity.json & wgcf-profile.ini

و بعد یه ریستارت کردن دستگاه و بعد اجرای warp-plus و اقعا هم اجرا شد.وارپ و گول رو تست کردم الان هم با gool هستم فعلا سایفون تست نکردم.

S1

s2

s3

با تشکر از دو بزرگ مرد مارک و یوسف

اگر ممکنه به ترتیب کد دستوری را بنویس کپی کنیم و اجرا کنیم اطلاعات من کم هست سپاس

markpash commented 3 months ago

Could it be that you need a ca-certificates package to be installed?

inattentive-nerd commented 3 months ago

Could it be that you need a ca-certificates package to be installed?

I have that package and I still get the error

pars1500 commented 3 months ago

Could it be that you need a ca-certificates package to be installed?

How to do this

please post the instructions.

inattentive-nerd commented 3 months ago

Could it be that you need a ca-certificates package to be installed?

How to do this

please post the instructions.

Use this command in Termux pkg install ca-certificates

inattentive-nerd commented 3 months ago

Can the error be due to failing to connect to the server that checks the certificate? What if the Iranian government has blocked our access to the server so censorship circumvention tools like warp-plus will fail? Disclaimer: I know nothing about network and randomly came up with this conspiracy theory. lol

pars1500 commented 3 months ago

Can the error be due to failing to connect to the server that checks the certificate? What if the Iranian government has blocked our access to the server so censorship circumvention tools like warp-plus will fail? Disclaimer: I know nothing about network and randomly came up with this conspiracy theory. lol

Yes, we turn on the vpn before starting the installation and updates.
Unfortunately, access to many termux libraries in Iran is limited.

I checked with the" pishgaman isp " and mobile operator "mci" >>>> in iran.

inattentive-nerd commented 3 months ago

Is this related to our problem? https://community.cloudflare.com/t/upcoming-certificate-renewal-for-1-1-1-1-public-resolver/594379