[RUT241] OpenSSL 3.5 regression in stable channel - Missing algorithms

Hello,
I have a RUT241 4G router upgraded to version RUT2M_R_00.07.24.3.

I have noticed that the last two firmware releases ship a reduced cryptographic algorithm set in OpenSSL compared to previous releases, this was likely caused when packaging the upgrade from the 3.0 series to version 3.5.

Some OpenSSL algorithms lists between RUT241 firmware versions

RUT241 running RUT2M_R_00.07.24.1:

openssl list -public-key-algorithms
root@RUT241:~# openssl list -public-key-algorithms
Provided:
 Key Managers:
  Name: OpenSSL RSA implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
  Name: OpenSSL PKCS#3 DH implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.113549.1.3.1, DH, dhKeyAgreement } @ default
  Name: OpenSSL DSA implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.10040.4.1, 1.2.840.10040.4.3, 1.3.14.3.2.12, 1.3.14.3.2.13, 1.3.14.3.2.27, DSA, DSA-old, DSA-SHA, DSA-SHA1, DSA-SHA1-old, dsaEncryption, dsaEncryption-old, dsaWithSHA, dsaWithSHA1, dsaWithSHA1-old } @ default
  Name: OpenSSL EC implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.10045.2.1, EC, id-ecPublicKey } @ default
  Name: OpenSSL RSA-PSS implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.113549.1.1.10, RSA-PSS, RSASSA-PSS, rsassaPss } @ default
  Name: OpenSSL X9.42 DH implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.10046.2.1, dhpublicnumber, DHX, X9.42 DH } @ default
  Name: OpenSSL X25519 implementation
    Type: Provider Algorithm
    IDs: { 1.3.101.110, X25519 } @ default
  Name: OpenSSL X448 implementation
    Type: Provider Algorithm
    IDs: { 1.3.101.111, X448 } @ default
  Name: OpenSSL ED25519 implementation
    Type: Provider Algorithm
    IDs: { 1.3.101.112, ED25519 } @ default
  Name: OpenSSL ED448 implementation
    Type: Provider Algorithm
    IDs: { 1.3.101.113, ED448 } @ default
  Name: OpenSSL TLS1_PRF via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: TLS1-PRF @ default
  Name: OpenSSL HKDF via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: HKDF @ default
  Name: OpenSSL SCRYPT via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: { 1.3.6.1.4.1.11591.4.11, id-scrypt, SCRYPT } @ default
  Name: OpenSSL HMAC via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: HMAC @ default
  Name: OpenSSL SIPHASH via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: SIPHASH @ default
  Name: OpenSSL POLY1305 via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: POLY1305 @ default
  Name: OpenSSL CMAC via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: CMAC @ default
openssl list -key-exchange-algorithms
root@RUT241:~# openssl list -key-exchange-algorithms
  { 1.2.840.113549.1.3.1, DH, dhKeyAgreement } @ default
  { 1.3.101.110, X25519 } @ default
  { 1.3.101.111, X448 } @ default
  ECDH @ default
  TLS1-PRF @ default
  HKDF @ default
  { 1.3.6.1.4.1.11591.4.11, id-scrypt, SCRYPT } @ default
openssl list -signature-algorithms
root@RUT241:~# openssl list -signature-algorithms
  { 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
  { 1.2.840.10040.4.1, 1.2.840.10040.4.3, 1.3.14.3.2.12, 1.3.14.3.2.13, 1.3.14.3.2.27, DSA, DSA-old, DSA-SHA, DSA-SHA1, DSA-SHA1-old, dsaEncryption, dsaEncryption-old, dsaWithSHA, dsaWithSHA1, dsaWithSHA1-old } @ default
  { 1.3.101.112, ED25519 } @ default
  { 1.3.101.113, ED448 } @ default
  ECDSA @ default
  HMAC @ default
  SIPHASH @ default
  POLY1305 @ default
  CMAC @ default

RUT241 running RUT2M_R_00.07.24.3:

openssl list -public-key-algorithms
root@RUT241:~# openssl list -public-key-algorithms
Provided:
 Key Managers:
  Name: OpenSSL RSA implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
  Name: OpenSSL PKCS#3 DH implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.113549.1.3.1, DH, dhKeyAgreement } @ default
  Name: OpenSSL DSA implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.10040.4.1, 1.3.14.3.2.12, DSA, DSA-old, dsaEncryption, dsaEncryption-old } @ default
  Name: OpenSSL EC implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.10045.2.1, EC, id-ecPublicKey } @ default
  Name: OpenSSL RSA-PSS implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.113549.1.1.10, RSA-PSS, RSASSA-PSS, rsassaPss } @ default
  Name: OpenSSL X9.42 DH implementation
    Type: Provider Algorithm
    IDs: { 1.2.840.10046.2.1, dhpublicnumber, DHX, X9.42 DH } @ default
  Name: OpenSSL TLS1_PRF via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: TLS1-PRF @ default
  Name: OpenSSL HKDF via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: HKDF @ default
  Name: OpenSSL SCRYPT via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: { 1.3.6.1.4.1.11591.4.11, id-scrypt, SCRYPT } @ default
  Name: OpenSSL HMAC via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: HMAC @ default
  Name: OpenSSL SIPHASH via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: SIPHASH @ default
  Name: OpenSSL POLY1305 via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: POLY1305 @ default
  Name: OpenSSL CMAC via EVP_PKEY implementation
    Type: Provider Algorithm
    IDs: CMAC @ default
openssl list -key-exchange-algorithms
root@RUT241:~# openssl list -key-exchange-algorithms
  { 1.2.840.113549.1.3.1, DH, dhKeyAgreement } @ default
  ECDH @ default
  TLS1-PRF @ default
  HKDF @ default
  { 1.3.6.1.4.1.11591.4.11, id-scrypt, SCRYPT } @ default
openssl list -signature-algorithms
root@RUT241:~# openssl list -signature-algorithms
  { 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
  { 1.2.840.10040.4.1, 1.3.14.3.2.12, DSA, DSA-old, dsaEncryption, dsaEncryption-old } @ default
  { 1.2.840.10040.4.3, 1.3.14.3.2.27, DSA-SHA, DSA-SHA-1, DSA-SHA1, DSA-SHA1-old, dsaWithSHA, dsaWithSHA1, dsaWithSHA1-old } @ default
  { 2.16.840.1.101.3.4.3.1, DSA-SHA2-224, DSA-SHA224, dsa_with_SHA224 } @ default
  { 2.16.840.1.101.3.4.3.2, DSA-SHA2-256, DSA-SHA256, dsa_with_SHA256 } @ default
  { 1.2.840.1.101.3.4.3.3, DSA-SHA2-384, DSA-SHA384, dsa_with_SHA384, id-dsa-with-sha384 } @ default
  { 1.2.840.1.101.3.4.3.4, DSA-SHA2-512, DSA-SHA512, dsa_with_SHA512, id-dsa-with-sha512 } @ default
  { 2.16.840.1.101.3.4.3.5, DSA-SHA3-224, dsa_with_SHA3-224, id-dsa-with-sha3-224 } @ default
  { 2.16.840.1.101.3.4.3.6, DSA-SHA3-256, dsa_with_SHA3-256, id-dsa-with-sha3-256 } @ default
  { 2.16.840.1.101.3.4.3.7, DSA-SHA3-384, dsa_with_SHA3-384, id-dsa-with-sha3-384 } @ default
  { 2.16.840.1.101.3.4.3.8, DSA-SHA3-512, dsa_with_SHA3-512, id-dsa-with-sha3-512 } @ default
  { 1.3.36.3.3.1.2, ripemd160WithRSA, RSA-RIPEMD160 } @ default
  { 1.2.840.113549.1.1.5, RSA-SHA-1, RSA-SHA1, sha1WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.14, RSA-SHA2-224, RSA-SHA224, sha224WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.11, RSA-SHA2-256, RSA-SHA256, sha256WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.12, RSA-SHA2-384, RSA-SHA384, sha384WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.13, RSA-SHA2-512, RSA-SHA512, sha512WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.15, RSA-SHA2-512/224, RSA-SHA512-224, sha512-224WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.16, RSA-SHA2-512/256, RSA-SHA512-256, sha512-256WithRSAEncryption } @ default
  { 2.16.840.1.101.3.4.3.13, id-rsassa-pkcs1-v1_5-with-sha3-224, RSA-SHA3-224 } @ default
  { 2.16.840.1.101.3.4.3.14, id-rsassa-pkcs1-v1_5-with-sha3-256, RSA-SHA3-256 } @ default
  { 2.16.840.1.101.3.4.3.15, id-rsassa-pkcs1-v1_5-with-sha3-384, RSA-SHA3-384 } @ default
  { 2.16.840.1.101.3.4.3.16, id-rsassa-pkcs1-v1_5-with-sha3-512, RSA-SHA3-512 } @ default
  ECDSA @ default
  { 1.2.840.10045.4.1, ECDSA-SHA-1, ECDSA-SHA1, ecdsa-with-SHA1 } @ default
  { 1.2.840.10045.4.3.1, ECDSA-SHA2-224, ECDSA-SHA224, ecdsa-with-SHA224 } @ default
  { 1.2.840.10045.4.3.2, ECDSA-SHA2-256, ECDSA-SHA256, ecdsa-with-SHA256 } @ default
  { 1.2.840.10045.4.3.3, ECDSA-SHA2-384, ECDSA-SHA384, ecdsa-with-SHA384 } @ default
  { 1.2.840.10045.4.3.4, ECDSA-SHA2-512, ECDSA-SHA512, ecdsa-with-SHA512 } @ default
  { 2.16.840.1.101.3.4.3.9, ECDSA-SHA3-224, ecdsa_with_SHA3-224, id-ecdsa-with-sha3-224 } @ default
  { 2.16.840.1.101.3.4.3.10, ECDSA-SHA3-256, ecdsa_with_SHA3-256, id-ecdsa-with-sha3-256 } @ default
  { 2.16.840.1.101.3.4.3.11, ECDSA-SHA3-384, ecdsa_with_SHA3-384, id-ecdsa-with-sha3-384 } @ default
  { 2.16.840.1.101.3.4.3.12, ECDSA-SHA3-512, ecdsa_with_SHA3-512, id-ecdsa-with-sha3-512 } @ default
  HMAC @ default
  SIPHASH @ default
  POLY1305 @ default
  CMAC @ default

openssl list <option> can show other informative data about algorithms built into OpenSSL libraries.

As for our specific case, we’re suffering from the lack of the EdDSA signing algorithm which is employed by certificates we’re using with OpenVPN which in turn relies on OpenSSL as the cryptographic library.

It’s worth noting that the X25519 and X448 kex algorithms seem to be missing as well and that one of the golden features of OpenSSL 3.5, post-quantum cryptography algorithms (ML-KEM and ML-DSA), seems to be disabled too.

Crucially, the upgrade of remotely installed RUT241 reachable only over VPNs relying on these crypto algorithms through OpenSSL by unaware operators will cause them to become unreachable!

This is likely the same issue as RutOS 7.24.2 Regression: IPsec / strongSwan 6.0.7 missing Curve25519 and Curve448 support but for the RUT241 router and this time affecting us with OpenVPN.

It’s very unfortunate that these firmwares were eventually pushed to the stable channel despite their long stay in the latest channel with an open bug report about them.

Greetings, @bgiovanni,

Thank you for the detailed comparison of the OpenSSL algorithm listings between RUT2M_R_00.07.24.1 and 00.07.24.3. This information is very helpful.

We have checked the RUT241 firmware history and confirmed that OpenSSL was updated to version 3.5.7 in RUT2M_R_00.07.24.2. We have also checked the official OpenSSL 3.5 documentation, which confirms that X25519, X448, ED25519 and ED448 are supported algorithms.

Based on this, the absence of these algorithms from the affected firmware requires further investigation and cannot be explained simply by the OpenSSL 3.5 update itself.

There is also a separate RUTX50 case concerning missing Curve25519/Curve448 functionality after the OpenSSL 3.5.7 and strongSwan 6.0.7 update. The similarities are noteworthy, although we cannot yet confirm that both issues have the same root cause.

Before proceeding further, could you please provide the following output from the affected RUT241?

openssl version -a
openssl list -providers
openssl list -kem-algorithms

Additionally, please provide the relevant OpenVPN log/error generated when the Ed25519/EdDSA certificate is used.

This information will help us verify the exact scope of the issue and determine the appropriate next steps.

Thank you for the detailed investigation and for bringing this to our attention.

Best regards,
V.

Hello @vilius,
glad to hear back from you in such a short time!

Given the difference in the built-in algorithms shown in my original message it most likely is.
Here’s a list of build options from the RUT241 SDKs for RUT2M_R_00.07.24.1 and RUT2M_R_00.07.24.3:

OpenWRT's OpenSSL Build options
RUT2M_R_00.07.24.1
rutos-ramips-rut2m-sdk> grep -ni openssl .config
<snip>
4071:CONFIG_PACKAGE_libopenssl=y
4076:# CONFIG_OPENSSL_OPTIMIZE_SPEED is not set
4077:CONFIG_OPENSSL_SMALL_FOOTPRINT=y
4078:CONFIG_OPENSSL_WITH_ASM=y
4079:# CONFIG_OPENSSL_WITH_DEPRECATED is not set
4080:CONFIG_OPENSSL_NO_DEPRECATED=y
4081:# CONFIG_OPENSSL_WITH_ERROR_MESSAGES is not set
4086:CONFIG_OPENSSL_WITH_TLS13=y
4087:# CONFIG_OPENSSL_WITH_DTLS is not set
4088:# CONFIG_OPENSSL_WITH_NPN is not set
4089:CONFIG_OPENSSL_WITH_SRP=y
4090:CONFIG_OPENSSL_WITH_CMS=y
4095:# CONFIG_OPENSSL_WITH_EC2M is not set
4096:CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
4097:CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
4098:CONFIG_OPENSSL_WITH_PSK=y
4103:# CONFIG_OPENSSL_WITH_ARIA is not set
4104:# CONFIG_OPENSSL_WITH_CAMELLIA is not set
4105:# CONFIG_OPENSSL_WITH_IDEA is not set
4106:# CONFIG_OPENSSL_WITH_SEED is not set
4107:# CONFIG_OPENSSL_WITH_SM234 is not set
4108:# CONFIG_OPENSSL_WITH_BLAKE2 is not set
4109:# CONFIG_OPENSSL_WITH_MDC2 is not set
4110:# CONFIG_OPENSSL_WITH_WHIRLPOOL is not set
4111:# CONFIG_OPENSSL_WITH_COMPRESSION is not set
4112:# CONFIG_OPENSSL_WITH_RFC3779 is not set
4117:# CONFIG_OPENSSL_ENGINE is not set
4118:CONFIG_PACKAGE_libopenssl-conf=y
4119:CONFIG_PACKAGE_libopenssl-legacy=y
<snip>
RUT2M_R_00.07.24.3
<snip>
rutos-ramips-rut2m-sdk> grep -ni openssl .config 
4083:CONFIG_PACKAGE_libopenssl=y
4088:# CONFIG_OPENSSL_OPTIMIZE_SPEED is not set
4089:CONFIG_OPENSSL_SMALL_FOOTPRINT=y
4090:CONFIG_OPENSSL_WITH_ASM=y
4091:# CONFIG_OPENSSL_WITH_DEPRECATED is not set
4092:CONFIG_OPENSSL_NO_DEPRECATED=y
4093:# CONFIG_OPENSSL_WITH_ERROR_MESSAGES is not set
4098:CONFIG_OPENSSL_WITH_TLS13=y
4099:# CONFIG_OPENSSL_WITH_DTLS is not set
4100:# CONFIG_OPENSSL_WITH_NPN is not set
4101:CONFIG_OPENSSL_WITH_SRP=y
4102:CONFIG_OPENSSL_WITH_CMS=y
4107:# CONFIG_OPENSSL_WITH_EC2M is not set
4108:# CONFIG_OPENSSL_WITH_ECX is not set
4109:CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
4110:CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
4111:CONFIG_OPENSSL_WITH_PSK=y
4116:# CONFIG_OPENSSL_WITH_ARIA is not set
4117:# CONFIG_OPENSSL_WITH_CAMELLIA is not set
4118:# CONFIG_OPENSSL_WITH_IDEA is not set
4119:# CONFIG_OPENSSL_WITH_SEED is not set
4120:# CONFIG_OPENSSL_WITH_SM234 is not set
4121:# CONFIG_OPENSSL_WITH_BLAKE2 is not set
4122:# CONFIG_OPENSSL_WITH_MDC2 is not set
4123:# CONFIG_OPENSSL_WITH_WHIRLPOOL is not set
4124:# CONFIG_OPENSSL_WITH_COMPRESSION is not set
4125:# CONFIG_OPENSSL_WITH_RFC3779 is not set
4130:# CONFIG_OPENSSL_ENGINE is not set
4131:# CONFIG_OPENSSL_WITH_POST_QUANTUM is not set
4132:CONFIG_PACKAGE_libopenssl-conf=y
4133:CONFIG_PACKAGE_libopenssl-legacy=y
<snip>

You can see that some new OpenWRT build flags likely related to the issue have been introduced but not enabled like - but not necessarily limited to: CONFIG_OPENSSL_WITH_ECX.
(and the CONFIG_OPENSSL_WITH_POST_QUANTUM option nowadays would be muuuch appreciated as well!)

openssl version -a
root@RUT241:~# openssl version -a
OpenSSL 3.5.7 9 Jun 2026 (Library: OpenSSL 3.5.7 9 Jun 2026)
built on: Fri Aug 28 10:03:25 2026 UTC
platform: linux-mipsel-openwrt
options:  bn(64,32)
compiler: mipsel-openwrt-linux-musl-gcc -fPIC -pthread -mabi=32 -Wa,--noexecstack -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -ffunction-sections -fdata-sections -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fpic -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -DOPENSSL_PREFER_CHACHA_OVER_GCM -DOPENSSL_SMALL_FOOTPRINT -DRUT2M_PLATFORM -DDEVICE_MODEM_VENDORS=Quectel,Meiglink,Teltonika,Fibocom -DDEVICE_MODEM_LIST=SLM750,EC200A,EC25,EG25,SLM828,RG255C,ALA440,EG060K,NL668 -DMOBILE_SUPPORT -DDUAL_SIM_SUPPORT -DWIFI_SUPPORT -DIO_SUPPORT -DUSES_SOFT_PORT_MIRROR -DPROD_IMAGE
OPENSSLDIR: "/etc/ssl"
ENGINESDIR: "/usr/lib/engines-3"
MODULESDIR: "/usr/lib/ossl-modules"
Seeding source: os-specific
CPUINFO: N/A
openssl list -providers
root@RUT241:~# openssl list -providers
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.5.7
    status: active
  legacy
    name: OpenSSL Legacy Provider
    version: 3.5.7
    status: active
openssl list -kem-algorithms
root@RUT241:~# openssl list -kem-algorithms
  { 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
  { 1.2.840.10045.2.1, EC, id-ecPublicKey } @ default

OpenVPN instance2 logs
Note: --cipher is not set. OpenVPN versions before 2.5 defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
OpenVPN 2.6.17 mipsel-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH/PKTINFO] [AEAD] [DCO]
library versions: OpenSSL 3.5.7 9 Jun 2026, LZO 2.10
DCO version: N/A
NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
OpenSSL: error:03000072:lib(6)::reason(114):
OpenSSL: error:0A00018F:lib(20)::reason(399):
Cannot load inline certificate file
Exiting due to fatal error

You can quickly load the OpenVPN client configuration file below to reproduce those errors, it embeds a client and CA certificates self-signed with EdDSA:

Dummy OpenVPN config you can use for reproduction and testing purposes
# Dummy config file to reproduce missing algorithms in OpenSSL with OpenVPN
remote dummy.test
client
nobind
dev tun

remote-cert-tls server

explicit-exit-notify


<cert>
-----BEGIN CERTIFICATE-----
MIIB+TCCAaugAwIBAgIUM5OPZTrV+hlTEahY9Zzll+GwBQgwBQYDK2VwMDcxNTAz
BgNVBAMMLHRlbHRvbmlrYS1kdW1teS1zZWxmc2lnbmVkLWVkZHNhLWNlcnRpZmlj
YXRlMCAXDTI2MDkwMTE3MjQzM1oYDzIwNTEwNDIzMTcyNDMzWjA3MTUwMwYDVQQD
DCx0ZWx0b25pa2EtZHVtbXktc2VsZnNpZ25lZC1lZGRzYS1jZXJ0aWZpY2F0ZTAq
MAUGAytlcAMhABYwGiNRME1mbK/u1tUCd4iaLKeT1w9oMWh3Ugb4/f6zo4HGMIHD
MB0GA1UdDgQWBBSA0QPcuSYSYAj8QVtzaXVCgXyvkjByBgNVHSMEazBpgBSA0QPc
uSYSYAj8QVtzaXVCgXyvkqE7pDkwNzE1MDMGA1UEAwwsdGVsdG9uaWthLWR1bW15
LXNlbGZzaWduZWQtZWRkc2EtY2VydGlmaWNhdGWCFDOTj2U61foZUxGoWPWc5Zfh
sAUIMAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgWgMBMGA1UdJQQMMAoGCCsGAQUF
BwMCMAUGAytlcANBAIebfeyxSoZelaWAs7e6IFrFqshTuJPldUL5TA5OnkJF8E1d
Pp1DPlUhGwyDklTXlF+ZpJf1dwsaJ8+CUO+mcwk=
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VwBCIEICsmq3fhuQgWUJInJxx9dBD2An9clfgLhOkewRJzj9OF
-----END PRIVATE KEY-----
</key>

<ca>
-----BEGIN CERTIFICATE-----
MIIBnTCCAU+gAwIBAgIUGWLVbVnbtQToTOndt/IrBMW+LCMwBQYDK2VwMB8xHTAb
BgNVBAMMFFRlbHRvbmlrYSBEdW1teSBDZXJ0MB4XDTI2MDkwMTE3MjczN1oXDTM2
MDgyOTE3MjczN1owHzEdMBsGA1UEAwwUVGVsdG9uaWthIER1bW15IENlcnQwKjAF
BgMrZXADIQBj0xYIfpuXBbbKcEpYphUFafWBrwmuqTsooFWVXME6kaOBnDCBmTAP
BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBSqcQcDKaQb83ejIo4n13xrwyFlFDBa
BgNVHSMEUzBRgBSqcQcDKaQb83ejIo4n13xrwyFlFKEjpCEwHzEdMBsGA1UEAwwU
VGVsdG9uaWthIER1bW15IENlcnSCFBli1W1Z27UE6Ezp3bfyKwTFviwjMAsGA1Ud
DwQEAwIBBjAFBgMrZXADQQBJTEcxW4ohfJGiDUsguHQkhHzW4E2qCteoaYLTFyz8
SpYa7HQNSNY3RK0QSeNVnt6U7utXLekPbGjeTgQSzpIA
-----END CERTIFICATE-----
</ca>
Human-readable data of the dummy certificate and CA
openssl x509 -in eddsa-dummy-ovpn.config -text -noout 
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            33:93:8f:65:3a:d5:fa:19:53:11:a8:58:f5:9c:e5:97:e1:b0:05:08
        Signature Algorithm: ED25519
        Issuer: CN=teltonika-dummy-selfsigned-eddsa-certificate
        Validity
            Not Before: Sep  1 17:24:33 2026 GMT
            Not After : Apr 23 17:24:33 2051 GMT
        Subject: CN=teltonika-dummy-selfsigned-eddsa-certificate
        Subject Public Key Info:
            Public Key Algorithm: ED25519
                ED25519 Public-Key:
                pub:
                    16:30:1a:23:51:30:4d:66:6c:af:ee:d6:d5:02:77:
                    88:9a:2c:a7:93:d7:0f:68:31:68:77:52:06:f8:fd:
                    fe:b3
        X509v3 extensions:
            X509v3 Subject Key Identifier: 
                80:D1:03:DC:B9:26:12:60:08:FC:41:5B:73:69:75:42:81:7C:AF:92
            X509v3 Authority Key Identifier: 
                keyid:80:D1:03:DC:B9:26:12:60:08:FC:41:5B:73:69:75:42:81:7C:AF:92
                DirName:/CN=teltonika-dummy-selfsigned-eddsa-certificate
                serial:33:93:8F:65:3A:D5:FA:19:53:11:A8:58:F5:9C:E5:97:E1:B0:05:08
            X509v3 Basic Constraints: 
                CA:TRUE
            X509v3 Key Usage: 
                Digital Signature, Key Encipherment
            X509v3 Extended Key Usage: 
                TLS Web Client Authentication
    Signature Algorithm: ED25519
    Signature Value:
        87:9b:7d:ec:b1:4a:86:5e:95:a5:80:b3:b7:ba:20:5a:c5:aa:
        c8:53:b8:93:e5:75:42:f9:4c:0e:4e:9e:42:45:f0:4d:5d:3e:
        9d:43:3e:55:21:1b:0c:83:92:54:d7:94:5f:99:a4:97:f5:77:
        0b:1a:27:cf:82:50:ef:a6:73:09

openssl x509 -in pki/ca.crt -text -noout 
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            19:62:d5:6d:59:db:b5:04:e8:4c:e9:dd:b7:f2:2b:04:c5:be:2c:23
        Signature Algorithm: ED25519
        Issuer: CN=Teltonika Dummy Cert
        Validity
            Not Before: Sep  1 17:27:37 2026 GMT
            Not After : Aug 29 17:27:37 2036 GMT
        Subject: CN=Teltonika Dummy Cert
        Subject Public Key Info:
            Public Key Algorithm: ED25519
                ED25519 Public-Key:
                pub:
                    63:d3:16:08:7e:9b:97:05:b6:ca:70:4a:58:a6:15:
                    05:69:f5:81:af:09:ae:a9:3b:28:a0:55:95:5c:c1:
                    3a:91
        X509v3 extensions:
            X509v3 Basic Constraints: critical
                CA:TRUE
            X509v3 Subject Key Identifier: 
                AA:71:07:03:29:A4:1B:F3:77:A3:22:8E:27:D7:7C:6B:C3:21:65:14
            X509v3 Authority Key Identifier: 
                keyid:AA:71:07:03:29:A4:1B:F3:77:A3:22:8E:27:D7:7C:6B:C3:21:65:14
                DirName:/CN=Teltonika Dummy Cert
                serial:19:62:D5:6D:59:DB:B5:04:E8:4C:E9:DD:B7:F2:2B:04:C5:BE:2C:23
            X509v3 Key Usage: 
                Certificate Sign, CRL Sign
    Signature Algorithm: ED25519
    Signature Value:
        49:4c:47:31:5b:8a:21:7c:91:a2:0d:4b:20:b8:74:24:84:7c:
        d6:e0:4d:aa:0a:d7:a8:69:82:d3:17:2c:fc:4a:96:1a:ec:74:
        0d:48:d6:37:44:ad:10:49:e3:55:9e:de:94:ee:eb:57:2d:e9:
        0f:6c:68:de:4e:04:12:ce:92:00

I forgot to mention what’s the expected good result as seen in RUT2M_R_00.07.24.1:

OpenVPN instance2 logs on RUT2M_R_00.07.24.1
Note: --cipher is not set. OpenVPN versions before 2.5 defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
Note: Kernel support for ovpn-dco missing, disabling data channel offload.
OpenVPN 2.6.17 mipsel-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [MH/PKTINFO] [AEAD] [DCO]
library versions: OpenSSL 3.0.21 9 Jun 2026, LZO 2.10
DCO version: N/A
NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Control Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1250 tun_max_mtu:0 headroom:126 payload:1600 tailroom:126 ET:0 ]
RESOLVE: Cannot resolve host address: dummy.test:1194 (Name does not resolve)
Data Channel MTU parms [ mss_fix:0 max_frag:0 tun_mtu:1500 tun_max_mtu:1600 headroom:136 payload:1768 tailroom:562 ET:0 ]
RESOLVE: Cannot resolve host address: dummy.test:1194 (Name does not resolve)
Could not determine IPv4/IPv6 protocol
SIGUSR1[soft,Could not determine IPv4/IPv6 protocol] received, process restarting
Restart pause, 1 second(s)

Greetings, @bgiovanni,

Thank you for providing the additional information.

I have forwarded the issue to our R&D team for further investigation. I will keep you informed as soon as I receive any updates regarding the matter.

Best regards,
V.

I can confirm that RUT2M_R_00.07.24.5 has solved the issue by implementing the EdDSA curves, kex and signing algorithms, now OpenVPN can use the ED25519 signed certificate and connect to the server.

`openssl list -key-exchange-algorithms` on RUT2M_R_00.07.24.5
root@RUT241:~# openssl list -key-exchange-algorithms
  { 1.2.840.113549.1.3.1, DH, dhKeyAgreement } @ default
  { 1.3.101.110, X25519 } @ default
  { 1.3.101.111, X448 } @ default
  ECDH @ default
  TLS1-PRF @ default
  HKDF @ default
  { 1.3.6.1.4.1.11591.4.11, id-scrypt, SCRYPT } @ default
`openssl list -signature-algorithms` on RUT2M_R_00.07.24.5
root@RUT241:~# openssl list -signature-algorithms
  { 1.2.840.113549.1.1.1, 2.5.8.1.1, RSA, rsaEncryption } @ default
  { 1.2.840.10040.4.1, 1.3.14.3.2.12, DSA, DSA-old, dsaEncryption, dsaEncryption-old } @ default
  { 1.2.840.10040.4.3, 1.3.14.3.2.27, DSA-SHA, DSA-SHA-1, DSA-SHA1, DSA-SHA1-old, dsaWithSHA, dsaWithSHA1, dsaWithSHA1-old } @ default
  { 1.3.101.112, ED25519 } @ default
  { 1.3.101.113, ED448 } @ default
  { 2.16.840.1.101.3.4.3.1, DSA-SHA2-224, DSA-SHA224, dsa_with_SHA224 } @ default
  { 2.16.840.1.101.3.4.3.2, DSA-SHA2-256, DSA-SHA256, dsa_with_SHA256 } @ default
  { 1.2.840.1.101.3.4.3.3, DSA-SHA2-384, DSA-SHA384, dsa_with_SHA384, id-dsa-with-sha384 } @ default
  { 1.2.840.1.101.3.4.3.4, DSA-SHA2-512, DSA-SHA512, dsa_with_SHA512, id-dsa-with-sha512 } @ default
  { 2.16.840.1.101.3.4.3.5, DSA-SHA3-224, dsa_with_SHA3-224, id-dsa-with-sha3-224 } @ default
  { 2.16.840.1.101.3.4.3.6, DSA-SHA3-256, dsa_with_SHA3-256, id-dsa-with-sha3-256 } @ default
  { 2.16.840.1.101.3.4.3.7, DSA-SHA3-384, dsa_with_SHA3-384, id-dsa-with-sha3-384 } @ default
  { 2.16.840.1.101.3.4.3.8, DSA-SHA3-512, dsa_with_SHA3-512, id-dsa-with-sha3-512 } @ default
  { 1.3.36.3.3.1.2, ripemd160WithRSA, RSA-RIPEMD160 } @ default
  { 1.2.840.113549.1.1.5, RSA-SHA-1, RSA-SHA1, sha1WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.14, RSA-SHA2-224, RSA-SHA224, sha224WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.11, RSA-SHA2-256, RSA-SHA256, sha256WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.12, RSA-SHA2-384, RSA-SHA384, sha384WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.13, RSA-SHA2-512, RSA-SHA512, sha512WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.15, RSA-SHA2-512/224, RSA-SHA512-224, sha512-224WithRSAEncryption } @ default
  { 1.2.840.113549.1.1.16, RSA-SHA2-512/256, RSA-SHA512-256, sha512-256WithRSAEncryption } @ default
  { 2.16.840.1.101.3.4.3.13, id-rsassa-pkcs1-v1_5-with-sha3-224, RSA-SHA3-224 } @ default
  { 2.16.840.1.101.3.4.3.14, id-rsassa-pkcs1-v1_5-with-sha3-256, RSA-SHA3-256 } @ default
  { 2.16.840.1.101.3.4.3.15, id-rsassa-pkcs1-v1_5-with-sha3-384, RSA-SHA3-384 } @ default
  { 2.16.840.1.101.3.4.3.16, id-rsassa-pkcs1-v1_5-with-sha3-512, RSA-SHA3-512 } @ default
  ED25519ph @ default
  ED25519ctx @ default
  ED448ph @ default
  ECDSA @ default
  { 1.2.840.10045.4.1, ECDSA-SHA-1, ECDSA-SHA1, ecdsa-with-SHA1 } @ default
  { 1.2.840.10045.4.3.1, ECDSA-SHA2-224, ECDSA-SHA224, ecdsa-with-SHA224 } @ default
  { 1.2.840.10045.4.3.2, ECDSA-SHA2-256, ECDSA-SHA256, ecdsa-with-SHA256 } @ default
  { 1.2.840.10045.4.3.3, ECDSA-SHA2-384, ECDSA-SHA384, ecdsa-with-SHA384 } @ default
  { 1.2.840.10045.4.3.4, ECDSA-SHA2-512, ECDSA-SHA512, ecdsa-with-SHA512 } @ default
  { 2.16.840.1.101.3.4.3.9, ECDSA-SHA3-224, ecdsa_with_SHA3-224, id-ecdsa-with-sha3-224 } @ default
  { 2.16.840.1.101.3.4.3.10, ECDSA-SHA3-256, ecdsa_with_SHA3-256, id-ecdsa-with-sha3-256 } @ default
  { 2.16.840.1.101.3.4.3.11, ECDSA-SHA3-384, ecdsa_with_SHA3-384, id-ecdsa-with-sha3-384 } @ default
  { 2.16.840.1.101.3.4.3.12, ECDSA-SHA3-512, ecdsa_with_SHA3-512, id-ecdsa-with-sha3-512 } @ default
  HMAC @ default
  SIPHASH @ default
  POLY1305 @ default
  CMAC @ default

I’ve noticed however the absence of the new post-quantum goodies of OpenSSL 3.5, presumably because the build option CONFIG_OPENSSL_WITH_POST_QUANTUM hasn’t yet been enabled.

It would be interesting to know whether its configuration for the RUT241 is a planned software improvement.

Greetings, @bgiovanni ,

I have an update from the R&D team.

Quantum goodies are are part of strongswan version 6.0.0, which does not fit on small flash devices, such as the RUT2M and RUT9M. They will still receive the CVE fixes that were released in strongswan 6.1.0 in future firmware releases as patches. On the RUT2M device if you run swanctl --version you should see 5.9.14as they unfortunately do not have the space for the upgrade.

Kind regards,
V.

Hello,

I see that upgrading strongSwan to a newer major version could increase the storage requirements by producing excessively larger build artifacts and thus not be possible with these devices.

In this case however I was referring to the OpenSSL libraries specifically and not to strongSwan.

I suspect that enabling PQ for OpenSSL would result in smaller size increase in comparison to the strongSwan case and that it may actually be tolerated.

Out of curiosity, I delegated an LLM agent to run some tests targeting the following configurations:
(configurable using the OpenSSL build options directly since the OpenWRT one is too coarse)

  1. No PQC
  2. +ML-DSA +ML-KEM -SLH-DSA
  3. +ML-DSA +ML-KEM +SLH-DSA
List and description of steps of the tests

Using the RUT2M_R_00.07.24.5 SDK:

  1. I asked the agent to build OpenSSL with support for the PQ algorithms
  2. I asked it to compare the sizes of the OpenSSL shared libraries it built with those unpacked from the released RUT2M_R_00.07.24.5 build
  3. I asked it to compare to compare the effective size difference after the PQ-enabled libs were embedded in the final squashfs.
    (basically, it dumped the contents of the built image you’re distributing, it replaced the OpenSSL libs only, it recreated the compressed image and eventually measured the size change)
  4. I asked it to consider the impacts on the overlay used by runtime data (i.e. configuration and installed packages)

fwiw, here’s what it reported:

Uncompressed .so comparisons
Configuration Stripped libcrypto.so.3 Δ libssl.so.3
PQ off (current release) 3,142,879 B — 599,907 B
+ ML-KEM + ML-DSA 3,266,275 B +123,396 B (+120.5 KiB) 599,907 B
+ all three (ML-KEM/ML-DSA/SLH-DSA) 3,360,811 B +217,932 B (+212.8 KiB) 599,907 B
.so replaced in the compressed `RUT2M_R_00.07.24.5` squashfs

Measured by repacking the released 7.24.5 rootfs with the vendor’s exact squashfs settings (xz, 64 KiB blocks, duplicate removal) and swapping only libcrypto.so.3:

Configuration Squashfs delta (on-flash)
+ ML-KEM + ML-DSA +34,432 B (+33.6 KiB)
+ all three +48,928 B (+47.8 KiB)
Overlay size impact
Scenario Image Overlay Free for packages
Released 7.24.5 (PQ off) 11.44 MiB 3.62 MiB 2.98 MiB
+ ML-KEM + ML-DSA 11.47 MiB 3.59 MiB 2.95 MiB
+ all three 11.49 MiB 3.58 MiB 2.94 MiB
Full report

Impact of enabling OpenSSL Post-Quantum algorithms on RUT2M firmware size

Target: RUT2M (ramips/mt76x8, mipsel_24kc, musl), OpenSSL 3.5.7-5.
Config toggles: CONFIG_OPENSSL_WITH_POST_QUANTUM (gates ml-kem/ml-dsa), CONFIG_OPENSSL_WITH_SLH_DSA (new, gates slh-dsa).

Configuration Stripped libcrypto.so.3 Δ libssl.so.3
PQ off (current release) 3,142,879 B — 599,907 B
+ ML-KEM + ML-DSA 3,266,275 B +123,396 B (+120.5 KiB) 599,907 B
+ all three (ML-KEM/ML-DSA/SLH-DSA) 3,360,811 B +217,932 B (+212.8 KiB) 599,907 B
  • All PQC code lands in libcrypto.so.3; libssl.so.3 is unchanged.
  • Unstripped build artifacts grow by +154,080 B / +297,088 B; the numbers above are the stripped binaries as shipped in the ipk.

Effective impact on the squashfs image

Measured by repacking the released 7.24.5 rootfs with the vendor’s exact squashfs settings (xz, 64 KiB blocks, duplicate removal) and swapping only libcrypto.so.3:

Configuration Squashfs delta (on-flash)
+ ML-KEM + ML-DSA +34,432 B (+33.6 KiB)
+ all three +48,928 B (+47.8 KiB)

Because the kernel and all other packages are unchanged, the whole firmware image grows by exactly these amounts.

Resulting flash budget (firmware partition 15.06 MiB)

Scenario Image Overlay Free for packages
Released 7.24.5 (PQ off) 11.44 MiB 3.62 MiB 2.98 MiB
+ ML-KEM + ML-DSA 11.47 MiB 3.59 MiB 2.95 MiB
+ all three 11.49 MiB 3.58 MiB 2.94 MiB

Conclusion

Enabling all three PQC algorithms costs ~48 KiB of flash (~0.4% of the image), leaving ~2.94 MiB free for packages. There is ample headroom in the current 16 MB part; this does not constrain future releases. The release 7.24.5 ships with PQC off; enabling the options is a ~48 KiB trade for ML-KEM/ML-DSA/SLH-DSA capability across the TLS consumers (wpad, openvpn, curl, rut_fota, web UI, rms_mqtt).

Notes

  • Deltas were derived from a controlled rootfs repack (identical input, only libcrypto.so.3 swapped), not from a full firmware rebuild.
  • strongSwan in the firmware is 5.9.14, which predates ML-KEM key-exchange support (strongSwan 6.0.2+ required), so enabling OpenSSL PQC does not enable hybrid-PQC IKE in the current strongSwan.
  • The released image’s libcrypto.so.3 matches the PQ-off build in size (not byte-identical; toolchain variance).

TLDR; ‘full’ PQC in OpenSSL 3.5 for mipsel_24kc seems to cost at most an increase of ~212.8 KiB which comes down to ~47.8 KiB under current compression conditions.
Runtime CPU cost would still need to be assessed though.

I apologize for the persistence - :sweat_smile: - but I’d have the opportunity to use a fully PQC-proof VPN (via OpenVPN) starting right now and it feels annoying being unable to deploy devices on it due to lack of support, especially since the deployed devices are expected to have a long lifecycle.
Additionally, other OSSL-linked software present on the RUT241 would benefit from it! Except perhaps for strongSwan which seems to require the v6 series.

The transition to PQC seems to be going to happen either way, either earlier or in last-minute panicked rush.
Can’t but hope that EOL comes sooner then. :grimacing:

Greetings, @bgiovanni,

Thank you for sharing your observations.

I have forwarded this information to our R&D team for further consideration.

We appreciate you taking the time to share your insights with us.

Best regards,
V.

Greetings, @bgiovanni ,

I have an update from our R&D team:

Unfortunately, due to the limited flash memory available on these devices, we cannot allocate additional space for this functionality at this time.

The RUT9M and RUT2M product families are classified as devices with limited flash storage. For example, the RUT956 firmware requires extensive optimisation to ensure that updates can still be accommodated within the available space. As a result, even small increases in firmware size must be carefully evaluated.

While implementing this functionality may be technically feasible on certain devices, our current firmware architecture groups these products into the same limited-flash category. This means that changes affecting one product may also impact the other, requiring us to consider the storage constraints across both families.

For these reasons, we must carefully assess the benefits of any new functionality against its impact on firmware size and the available resources of the affected devices. At present, we cannot commit to implementing this change without further assessment of its feasibility and potential impact.

All the best,
V.

Understood, that’s unfortunate.

Anyway, I’d like to thank you Vilius for the precious assistance provided so far!

Case closed. :grin: