Skip to content

easy docker install script#26

Merged
pulpoff merged 7 commits intomasterfrom
claude/docker-asterisk-chan-dongle-AoPSz
Feb 28, 2026
Merged

easy docker install script#26
pulpoff merged 7 commits intomasterfrom
claude/docker-asterisk-chan-dongle-AoPSz

Conversation

@pulpoff
Copy link
Copy Markdown
Owner

@pulpoff pulpoff commented Feb 28, 2026

No description provided.

- Generate IAX2 RSA keys at container startup if not present
- Uses astgenkey with fallback to openssl
- Re-enable encryption=yes in iax.conf template
- Keys stored in /var/lib/asterisk/keys/ (can be mounted for persistence)
- Logs instructions for public key exchange with remote PBX

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
Asterisk's res_crypto requires traditional RSA PEM format:
- Private key: BEGIN RSA PRIVATE KEY (not BEGIN PRIVATE KEY)
- Public key: BEGIN RSA PUBLIC KEY (not BEGIN PUBLIC KEY)

Use -traditional and -RSAPublicKey_out flags in openssl fallback.
Also pass output path to astgenkey so keys go directly to keys dir.

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
Keys in /var/lib/asterisk/keys/ are now stored in a named Docker
volume so they survive container rebuilds and recreates. This is
essential for IAX2 encryption since both sides need stable key pairs.

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
Asterisk 20+ uses PEM_read_PUBKEY() which expects BEGIN PUBLIC KEY
(PKCS#8 SubjectPublicKeyInfo), not BEGIN RSA PUBLIC KEY (PKCS#1).
Use -pubout instead of -RSAPublicKey_out for openssl fallback.

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
IAX2 encryption=yes uses AES-128 with keys derived from the
registration password (MD5 auth digest). RSA keys are only needed
for auth=rsa, which we don't use. Removed unnecessary key generation
from entrypoint and keys volume from docker-compose.

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
Most Armbian images don't include Docker pre-installed. Added a section
with step-by-step commands to install Docker CE from the official
Docker repository on Debian-based Armbian systems.

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
Moved Docker installation steps into docker/install-docker.sh and
referenced it from the README. Most Armbian images don't ship with
Docker pre-installed, so this gives users a one-liner to set it up.

https://claude.ai/code/session_01M7DJEAxrReANcMZ6SjChaG
@pulpoff pulpoff merged commit c40d9d0 into master Feb 28, 2026
1 check passed
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.

2 participants