Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 0 additions & 40 deletions .github/workflows/mozilla-ca-cert.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/update-mozilla-ca-cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update Mozilla cert.pem Nightly

on:
schedule:
- cron: "0 11 * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
update_cert:
name: Update Mozilla cert.pem Nightly
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download latest Mozilla CA cert.pem
run: |
curl --silent --show-error --location https://curl.se/ca/cacert.pem -o chia/ssl/cacert.pem

- name: Set up commit signing
uses: Chia-Network/actions/commit-sign/gpg@main
with:
gpg_private_key: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_KEY }}
passphrase: ${{ secrets.CHIA_AUTOMATION_PRIVATE_GPG_PASSPHRASE }}

- name: Create Pull Request if cacert.pem changed
uses: peter-evans/create-pull-request@v6
with:
commit-message: "Update cacert.pem from Mozilla CA bundle"
title: "Update cacert.pem from Mozilla CA bundle"
body: "Automated update of cacert.pem from https://curl.se/ca/cacert.pem."
branch: update-cacert-pem
add-paths: chia/ssl/cacert.pem
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@
path = chia-blockchain-gui
url = https://github.com/Chia-Network/chia-blockchain-gui.git
branch = main
[submodule "mozilla-ca"]
path = mozilla-ca
url = https://github.com/Chia-Network/mozilla-ca.git
branch = main
2 changes: 0 additions & 2 deletions Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ if ($null -eq (Get-Command git -ErrorAction SilentlyContinue))
Exit 1
}

git submodule update --init mozilla-ca

if ($null -eq (Get-Command py -ErrorAction SilentlyContinue))
{
Write-Output "Unable to find py"
Expand Down
1 change: 0 additions & 1 deletion build_scripts/pyinstaller.spec
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ datas.append((f"{ROOT}/chia/util/initial-config.yaml", "chia/util"))
for path in sorted({path.parent for path in ROOT.joinpath("chia").rglob("*.hex")}):
datas.append((f"{path}/*.hex", path.relative_to(ROOT)))
datas.append((f"{ROOT}/chia/ssl/*", "chia/ssl"))
datas.append((f"{ROOT}/mozilla-ca/*", "mozilla-ca"))
datas.extend(version_data)

pathex = []
Expand Down
3,453 changes: 3,453 additions & 0 deletions chia/ssl/cacert.pem

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion chia/ssl/create_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_chia_ca_crt_key() -> tuple[Any, Any]:


def get_mozilla_ca_crt() -> str:
mozilla_path = Path(__file__).parent.parent.parent.absolute() / "mozilla-ca/cacert.pem"
mozilla_path = Path(__file__).parent.absolute() / "cacert.pem"
return str(mozilla_path)


Expand Down
2 changes: 0 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ if [ "$(uname -m)" = "armv7l" ]; then
echo "Exiting."
exit 1
fi
# Get submodules
git submodule update --init mozilla-ca

# You can specify preferred python version by exporting `INSTALL_PYTHON_VERSION`
# e.g. `export INSTALL_PYTHON_VERSION=3.9`
Expand Down
1 change: 0 additions & 1 deletion mozilla-ca
Submodule mozilla-ca deleted from c88cd8
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ homepage = "https://chia.net/"

[tool.poetry]
# see [tool.poetry-dynamic-versioning]
packages = [{ include = "chia"}, { include = "mozilla-ca/cacert.pem" }]
packages = [{ include = "chia"}]
version = "0.0.0"

[project.scripts]
Expand Down
Loading