Compare commits

..

3 Commits

Author SHA1 Message Date
eta 5098a5d510 changed key algorithm from rsa to ec
build-and-push / check-branch (push) Successful in 10s
build-and-push / build (amd64, linux/amd64) (push) Successful in 10m44s
2026-08-16 19:04:46 +03:30
eta 320098dd76 fixed owner name in other files!
build-and-push / check-branch (push) Successful in 8s
build-and-push / build (amd64, linux/amd64) (push) Successful in 11m9s
2026-08-15 16:49:02 +03:30
eta 1d185f5d6c fixed owner name in config
build-and-push / check-branch (push) Successful in 9s
build-and-push / build (amd64, linux/amd64) (push) Successful in 10m53s
2026-08-15 16:23:21 +03:30
5 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ App/add-on repository for [Viratak](https://viratak.com).
Apps documentation: <https://developers.home-assistant.io/docs/apps>
[![Open your Home Assistant instance and show the app store with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_store.svg)](https://my.home-assistant.io/redirect/supervisor_store/?repository_url=https://gitea.viratak.com/eta/virarepo)
[![Open your Home Assistant instance and show the app store with a specific repository URL pre-filled.](https://my.home-assistant.io/badges/supervisor_store.svg)](https://my.home-assistant.io/redirect/supervisor_store/?repository_url=https://gitea.viratak.com/bitopa/virarepo)
## Apps
+5 -1
View File
@@ -30,7 +30,11 @@ self-signed CA — no external CA or internet dependency.
Full device-side wire protocol: see `DEVICE_PROTOCOL.md`.
## Installing this add-on
## Installing this application
1. Add [virarepo repository](https://gitea.viratak.com/bitopa/virarepo) in applications section
2. Look for this project, and click install
## Offline Installing this application
1. Copy this folder into your Home Assistant add-ons repository (or add
it as a local add-on under `/addons/mqtt_cert_manager` on HAOS).
+9 -4
View File
@@ -33,7 +33,7 @@ class CertificateAuthority:
# -- setup ---------------------------------------------------------
def _generate_root_ca(self):
key = rsa.generate_private_key(public_exponent=65537, key_size=4096)
key = ec.generate_private_key(ec.SECP256R1())
subject = issuer = x509.Name(
[x509.NameAttribute(NameOID.COMMON_NAME, CA_COMMON_NAME)]
)
@@ -157,7 +157,7 @@ class CertificateAuthority:
if not hostnames:
raise ValueError("at least one hostname/IP is required")
key = rsa.generate_private_key(public_exponent=65537, key_size=2048)
key = ec.generate_private_key(ec.SECP256R1())
now = datetime.datetime.now(datetime.timezone.utc)
subject = x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, hostnames[0])])
@@ -180,7 +180,12 @@ class CertificateAuthority:
.add_extension(
x509.KeyUsage(
digital_signature=True,
key_encipherment=True,
# key_encipherment only applies to RSA (key-transport)
# keys; it's meaningless for an ECDSA key and shouldn't
# be set here now that this is EC. ECDHE cipher suites
# use ephemeral keys for the actual exchange — this
# cert's key is only ever used to sign, not encipher.
key_encipherment=False,
content_commitment=False,
data_encipherment=False,
key_agreement=False,
@@ -256,4 +261,4 @@ class CertificateAuthority:
return False
return True
except Exception:
return False
return False
+3 -3
View File
@@ -1,8 +1,8 @@
name: "MQTT Certificate Manager"
version: "0.3.3"
version: "0.4.0"
slug: "mqtt_cert_manager"
description: "Local CA that issues and manages TLS client certificates for MQTT nodes"
url: "https://gitea.viratak.com/eta/mqtt-cert-manager"
url: "https://gitea.viratak.com/bitopa/mqtt-cert-manager"
# Points Supervisor at a pre-built image instead of building locally on
# install. {arch} is substituted with each entry in "arch:" below (amd64,
# aarch64, ...) — Supervisor then pulls
@@ -10,7 +10,7 @@ url: "https://gitea.viratak.com/eta/mqtt-cert-manager"
# REPLACE git.example.com/YOUR_USER with your actual Gitea host + owner.
# Remove this line entirely to fall back to local building (e.g. while
# developing, before you've set up CI).
image: "gitea.viratak.com/eta/mqtt-cert-manager-{arch}"
image: "gitea.viratak.com/bitopa/mqtt-cert-manager-{arch}"
# TEMPORARY: restricted to amd64 only while developing against a single
# Dell thin client. Restore the full list before publishing for others —
# see the commented-out entries below.
+1 -1
View File
@@ -1,4 +1,4 @@
# https://developers.home-assistant.io/docs/apps/repository#repository-configuration
name: Viratak Home Assistant app repository
url: 'https://gitea.viratak.com/eta/virarepo'
url: 'https://gitea.viratak.com/bitopa/virarepo'
maintainer: Saman Sajedi <sajedi@viratak.com>