DioxusLabs / DioxusLabs/dioxus
add --ssl-no-revoke or --insecure option for dioxus-cli
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
## Feature Request
In company networks i cant add components because of certificatecheck issues:
```
D:\projects\app_at_storage\frontend>dx components add slider
Updating git repository `https://github.com/DioxusLabs/components`
warning: spurious network error (3 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - Die Sperrfunktion konnte keine Sperrpr�fung f�r das Zertifikat durchf�hren.); class=Net (12)
warning: spurious network error (2 tries remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - Die Sperrfunktion konnte keine Sperrpr�fung f�r das Zertifikat durchf�hren.); class=Net (12)
warning: spurious network error (1 try remaining): [35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - Die Sperrfunktion konnte keine Sperrpr�fung f�r das Zertifikat durchf�hren.); class=Net (12)
error: failed to load source for dependency `dioxus-primitives`
Caused by:
Unable to update https://github.com/DioxusLabs/components
Caused by:
failed to fetch into: C:\Users\█████████████\.cargo\git\db\components-c3e2707fcc33b190
Caused by:
network failure seems to have happened
if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
[35] SSL connect error (schannel: next InitializeSecurityContext failed: CRYPT_E_NO_REVOCATION_CHECK (0x80092012) - Die Sperrfunktion konnte keine Sperrpr�fung f�r das Zertifikat durchf�hren.); class=Net (12)
ERROR dx components: Failed to add dependency dioxus-primitives to Cargo.toml
D:\projects\app_at_storage\frontend>
```
## Implement Suggestion
I would add an option called `--ssl-no-revoke` or `--insecure` to the cli tool.
The alternative is setting CARGO_HTTP_CHECK_REVOKE to false (only windows) but directly controlling it via the cli tool, should be better. especially because it wouldnt only affect windows environments.
If you want me to, I can add this feature myself.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.