Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two potential solutions: #1093

Open
terrypin999 opened this issue Apr 30, 2024 · 4 comments
Open

Two potential solutions: #1093

terrypin999 opened this issue Apr 30, 2024 · 4 comments

Comments

@terrypin999
Copy link

          Two potential solutions:

Use your browser to go to https://drazzy.com/package_drazzy.com_index.json and when it complains about the certificate expiring, tell it that it's OK, save the file to disk and then in your IDE you can use file:https:///path/from/root/of/disk/to/file/package_drazzy.com_index.json or for Windows file:https:///c:/path/from/root/of/disk/to/file.package_drazzy.com_index.json.

Or if you figure that I've got many better things to do than try to hack in to peoples computers because they visited one of my web servers, you can use https://descartes.net/package_drazzy.com_index.json as a temporary measure. I can't hack in to your computer by altering the JSON file either but I could do odd things to the board support files if I had nothing better to do.

Anyone who wants to get all pointy fingered will have me delete this workaround, so please just don't.

Originally posted by @HeadBoffin in #1059 (comment)

@terrypin999
Copy link
Author

Hobbyist, not programmer here, and find github navigation hard work. Seemed unable to simply comment to @HeadBoffin 's helpful post, so here instead.
Opened the link you provided. No mention of certificates. How do I get from there to an alternative core, please? Do I simply add
https://descartes.net/package_drazzy.com_index.json
to these in IDE Preferences ?
https://mcudude.github.io/MiniCore/package_MCUdude_MiniCore_index.json http:https://digistump.com/package_digistump_index.json http:https://drazzy.com/package_drazzy.com_index.json https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json https://raw.githubusercontent.com/MHEtLive/arduino-boards-index/master/package_mhetlive_index.json

@tyeth
Copy link

tyeth commented May 29, 2024

Just to say last time the certificate expired I setup a mirror on a subdomain using cloudflare to proxy the content and provide a valid SSL certificate. This ignores all certificate issues on drazzy.com and is zero cost (free cloudflare plan)

E.g.
https://drazzy.good-enough.cloud [via cloudflare SSL] = https://drazzy.com

So the board support package URL becomes
https://drazzy.good-enough.cloud/package_drazzy.com_index.json

Here is our board URL change:

adafruit/ci-arduino@6b7a47c

Probably worth me tagging issue #1059

@henrygab
Copy link

Fascinating. It does seem like a bug in CloudFlare to allow proxy to an HTTPS site where the certificate is expired, though, doesn't it?

@tyeth
Copy link

tyeth commented Jun 12, 2024

Hehe, I call it a feature 🐛

I think it's actually part of their ability to protect and very a certificate chain between your server and them (verifying certs from your private certificate signing authority), while offering a public cloudflare certificate for your CDN proxied traffic (web users)

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

No branches or pull requests

3 participants