Visitar URL original
Simplify android ssl by coolreader18 · Pull Request #3477 · RustPython/RustPython · GitHub
The Wayback Machine - https://web.archive.org/web/20260815185605/https://github.com/RustPython/RustPython/pull/3477
Skip to content

Simplify android ssl - #3477

Closed
coolreader18 wants to merge 1 commit into
RustPython:mainfrom
coolreader18:android-ssl
Closed

Simplify android ssl#3477
coolreader18 wants to merge 1 commit into
RustPython:mainfrom
coolreader18:android-ssl

Conversation

@coolreader18

Copy link
Copy Markdown
Member

Still not sure about unconditionally using android system certs - on e.g. termux the ssl library provides its own, and I'd think so should android's libssl if it's dynamically linked in. If not dynamically linked, the path should be added to openssl-probe and it can take care of it. I'm on my phone, or else I'd find the person who added it originally and ask the use case.

Sent from my Moto z3

@coolreader18

Copy link
Copy Markdown
Member Author

Ah, yeah, #3163. /system/etc/security/cacerts should be added to openssl-probe then. @afpro do you think that would also be a solution for your use case?

@youknowone youknowone left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how are they magically not required anynore? they do it by watching to envvar?

@afpro

afpro commented Nov 30, 2021

Copy link
Copy Markdown
Contributor

Ah, yeah, #3163. /system/etc/security/cacerts should be added to openssl-probe then. @afpro do you think that would also be a solution for your use case?

i'm not familiar with 'SSL_CERT_DIR' envirtonment variable. this would be more maintainability if set 'SSL_CERT_DIR' could work as expectedly

@afpro

afpro commented Nov 30, 2021 •

Copy link
Copy Markdown
Contributor

just tried 'SSL_CERT_DIR', not working.
certificate file under /system/etc/security/cacerts is not standard openssl file format, but contains valid pem certificate chunk. that's why i parse them one by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants