Which Amazon Linux components depend on RSA and elliptic-curve keys today
A security assessor who needs to know where RSA and elliptic-curve keys sit in Amazon Linux should start with the version line, because the answer differs between AL2023, the AL2027 preview and AL2. On AL2023 and the AL2027 preview, SSH host keys, user keys, TLS certificates and key exchange rely on RSA, ECDSA, Ed25519 and (EC)DH, and ML-KEM hybrid key exchange exists only when the PQ subpolicy is applied. Amazon Linux 2 reached end of support on June 30, 2026, so it should be recorded as out of support rather than assessed for current defaults. AWS's pages do not describe a post-quantum certificate or signature default for SSH host keys on either supported line.
On AL2023, the classical public-key dependencies are the ones an assessor should record against each host. The AL2023 FIPS guide warns that ED25519 SSH user keys are not supported in FIPS mode, and that an instance launched with an ED25519 key pair can lose access after FIPS mode is enabled, so confirm the key types in ~/.ssh/authorized_keys before enabling FIPS. The AL2023 FAQ reports FIPS 140-3 Level 1 validation for the OpenSSL, GnuTLS, NSS, Libgcrypt and kernel crypto modules, with the certificate numbers listed there. Check the FAQ for the kernel 6.12 and 6.18 module status, because those validations were still in progress on the checked date. The FIPS guide does not cover certification status, so treat that as a separate question for the validation records.
The post-quantum settings are the part most likely to be misread. On AL2023 the PQ subpolicy is not applied by default, and it is enabled with sudo update-crypto-policies --set DEFAULT:PQ on AL2023.12 or higher, then confirmed with update-crypto-policies --show. On the AL2027 preview, the system-wide policies enable post-quantum cryptography by default, and the default SSH configuration places ML-KEM methods such as mlkem768x25519-sha256 ahead of the classical ones, while DEFAULT:NO-PQ removes them. Because AL2027 is for evaluation and testing only and is not recommended for production, record its settings as preview behavior and confirm them against the release that reaches general availability.
Public-key dependencies by Amazon Linux version and component
This table compares each main Amazon Linux component with the public-key algorithms it uses, whether post-quantum settings exist, and their default state, for AL2023 and AL2027. Read each row against the source and date listed in its cell, because AL2027 is a public preview and some settings differ between releases. The main takeaway is that AL2027 enables post-quantum key exchange by default in its documented components, while AL2023 requires the PQ subpolicy to be turned on manually.
| Component | AL2023 (public-key use and post-quantum setting) | AL2027 (public-key use and post-quantum setting) |
|---|---|---|
| OpenSSH | Version 8.7. Post-quantum key exchange is available only when the PQ subpolicy is applied with update-crypto-policies --set DEFAULT:PQ on AL2023.12 or higher. Not applied by default (AL2023 PQC guide). | Version 9.9. Default key exchange lists mlkem768x25519-sha256 and other ML-KEM methods first, ahead of classical methods. Default state is on (AL2027 SSH config, preview). |
| OpenSSL | Rebased to 3.5 in release 2023.10.20260330 (openssl-3.5.5-1.amzn2023.0.3), adding ML-KEM, ML-DSA and SLH-DSA. ML-DSA-44, 65 and 87 are listed for OpenSSL. Enabled only through the PQ subpolicy (AL2023 2023.10 release notes; PQC guide). | OpenSSL 3.5 is documented as a component of the post-quantum default in crypto policies. Confirm the exact build in your image (AL2027 PQC guide, preview). |
| GnuTLS | Rebased to 3.8.10 in release 2023.12.20260608, with ML-KEM hybrid key exchange and ML-DSA-44, 65 and 87 for TLS. Enabled only through the PQ subpolicy (AL2023 2023.12 release notes). | GnuTLS 3.8.10 is documented as a component of the post-quantum default in crypto policies (AL2027 PQC guide, preview). |
| NSS | Rebased to 3.112 in release 2023.12.20260608, with ML-DSA and hybrid MLKEM1024 support. Enabled only through the PQ subpolicy (AL2023 2023.12 release notes). | NSS 3.124 is documented as a component of the post-quantum default in crypto policies (AL2027 PQC guide, preview). |
| Kernel | The kernel 6.1 Crypto API module holds FIPS 140-3 Level 1 validation (certificate 5369). Kernel 6.12 validation was submitted on 19 July 2025, with completion expected July 2026 to January 2027 (AL2023 FAQ, checked 2026-12-03). The FAQ does not describe post-quantum algorithms in the kernel. | The AL2027 announcement states AWS-LC is used for cryptographic operations and does not mention post-quantum cryptography in the kernel (AL2027 announcement, 2026-09-03). Confirm kernel algorithm support in the release notes. |
| RPM signing (package and metadata) | Packages are checked with gpgcheck=1. repo_gpgcheck=1 must be set manually in /etc/yum.repos.d/ to verify signed repomd.xml.asc; default is disabled. Metadata signing began with release 2023.11.20260406 using an AWS KMS key (AL2023 metadata signing). | Package checking is gpgcheck=1 by default. repo_gpgcheck=0 is disabled by default, and key RPM-GPG-KEY-amazon-linux-2027 covers packages and metadata (AL2027 metadata signing). Signatures are classical, not post-quantum, per the sources. |
| SSH host and user keys | FIPS mode warns that ED25519 SSH user keys are not supported, and instances launched with an ED25519 key pair can lose access when FIPS mode is enabled (AL2023 FIPS guide). | The ssh-rsa host key algorithm is disabled by default, RSA keys must be at least 2048 bits, and ed25519 and ECDSA host keys are generated. The LEGACY crypto policy re-enables ssh-rsa (AL2027 SSH config; security features). |
| System crypto policies | LEGACY, DEFAULT, FUTURE and FIPS policies are documented. The PQ subpolicy is not applied by default and must be set manually. Check with update-crypto-policies --show (AL2023 PQC guide). | The post-quantum default is enabled. To remove ML-KEM and ML-DSA, run update-crypto-policies --set DEFAULT:NO-PQ. Confirm the setting after upgrades (AL2027 PQC guide, preview). |
Which parts of Amazon Linux use public keys for connections, logins and signatures
Amazon Linux relies on public-key cryptography in six places: SSH host and user keys, SSH key exchange, TLS certificates and libraries, package and metadata signing, and FIPS mode restrictions. Each one has its own defaults, its own algorithms and its own checks, so the inventory should be done component by component rather than assumed from the distribution name.
SSH host keys
SSH host keys identify the server to clients. On AL2027 the default configuration generates ed25519 and ECDSA host keys and disables the legacy ssh-rsa host key algorithm, while requiring RSA keys of at least 2048 bits where RSA is still used. The LEGACY crypto policy re-enables ssh-rsa, so a host that was moved to a stricter policy may still need its clients checked. Confirm which host key types each server actually presents, and whether any client in your estate only accepts RSA.
SSH user keys
SSH user keys authenticate logins. AL2027 documents RSA, ECDSA or Ed25519 user keys, but the AL2023 FIPS guide warns that ED25519 user keys are not supported in FIPS mode. An instance launched with an ED25519 key pair can lose access after FIPS mode is enabled. Before enabling FIPS, inventory every user key and every instance launch key pair, and confirm a second access path exists. Note that user key type is a per-user choice, so the inventory needs to cover individual accounts, not only system defaults.
AL2023 FIPS guideSSH key exchange
SSH key exchange sets the shared session secret and is where post-quantum key exchange would first appear. On AL2027, OpenSSH 9.9 offers hybrid ML-KEM methods (mlkem768x25519-sha256, mlkem768nistp256-sha256 and mlkem1024nistp384-sha384) ahead of curve25519 and ECDH methods, so the ML-KEM methods are preferred when both ends support them. Check the negotiated method on live sessions, not only the configured list. The key exchange is separate from host and user keys, so a server can use ML-KEM for the session while still authenticating with classical keys.
AL2027 SSH configTLS certificates and libraries
TLS certificates and the libraries that handle them are the public-key dependency most applications see. AL2023 OpenSSL 3.5 (openssl-3.5.5-1.amzn2023.0.3) adds ML-KEM, ML-DSA and SLH-DSA support, and GnuTLS 3.8.10 and NSS 3.112 add hybrid key exchange and ML-DSA signatures for TLS. Certificates issued by your CA still use whatever algorithm the CA signs with, so the library version alone does not change the certificate chain. List each service that terminates TLS on Amazon Linux, its library, and its certificate algorithm.
AL2023 2023.10 release notesRPM package and metadata signing
Package integrity uses RPM signatures, and gpgcheck=1 is enabled by default on both AL2023 and AL2027. Repository metadata signing is different: repo_gpgcheck is disabled by default on both releases, so repomd.xml is not verified unless you set it to 1 in /etc/yum.repos.d/. On AL2023, metadata signing began with release 2023.11.20260406 and uses an AWS KMS key. Check each repository file on each host, because a repository file copied from another host may differ.
FIPS mode key restrictions
FIPS mode changes which public-key options work, and it is enabled with sudo fips-mode-setup --enable followed by a reboot. Confirm the result with sudo fips-mode-setup --check, which should report that FIPS mode is enabled. The AL2023 FAQ states AWS achieved FIPS 140-3 Level 1 validation for listed OpenSSL, GnuTLS, NSS, Libgcrypt and kernel modules, but the FIPS guide says it does not cover the certification status of the modules, so verify validation status against the certificate numbers in the vendor documentation. Note that the kernel 6.12 and 6.18 modules were still under validation at the time of checking.
How the AL2027 SSH key exchange order changes the classical dependency
AL2027 ships OpenSSH 9.9, up from 8.7 in AL2023, and its default configuration changes which key exchange method a client and server agree on first. The default key exchange list places three hybrid ML-KEM methods (mlkem768x25519-sha256, mlkem768nistp256-sha256 and mlkem1024nistp384-sha384) ahead of the classical options: curve25519-sha256, the ecdh-sha2-nistp256, -nistp384 and -nistp521 methods, and the diffie-hellman-group-exchange and group14, group16 and group18 variants. The classical methods remain in the list as fallbacks, so a peer that does not offer ML-KEM can still connect. Check the order on a running host with sshd -T, since a local override in /etc/ssh/sshd_config.d/ can change it.
The key exchange order does not change host or user authentication keys. AL2027 disables the legacy ssh-rsa host key algorithm by default and requires RSA keys of at least 2048 bits, and it generates ed25519 and ECDSA host keys. The LEGACY crypto policy re-enables ssh-rsa, so a host moved to that policy to reach an older client will again offer an RSA signature that depends on factoring-hard assumptions. The hardening defaults are set in /etc/ssh/sshd_config.d/10-amazon-hardening.conf. Review that file and any LEGACY setting before assuming a host is on the default path.
The documentation checked for this page does not show whether an AL2027 host key or user key that uses a post-quantum signature algorithm is offered. The published SSH configuration lists key exchange methods and host key types, and it does not list ML-DSA or any other post-quantum signature for host keys. Confirm this with AWS before relying on it, and record the answer in the inventory. Until it is confirmed, treat the SSH host key and user authentication as classical dependencies, even where the key exchange is hybrid.
How the answer changes for AL2023, AL2027 and FIPS-mode systems
On AL2023 with the default crypto policy, the post-quantum subpolicy is not applied, so the system-wide policy does not turn on ML-KEM key exchange or ML-DSA signatures. Connections and signatures still rely on the classical algorithms that the default policy allows, including RSA, ECDSA, Ed25519 and (EC)DH, unless a component is configured otherwise. The OpenSSL, GnuTLS and NSS releases that carry post-quantum support are present in the distribution, so the default policy is a setting you can change rather than a missing capability.
- Post-quantum subpolicy not applied: the default policy does not include
PQ, so ML-KEM hybrid key exchange and ML-DSA signatures are not used by default. - Classical public-key use: SSH host keys, user keys, TLS certificates and key exchanges use RSA, ECDSA, Ed25519 or (EC)DH as configured.
- OpenSSL 3.5 present: the 2023.10 release rebased OpenSSL to 3.5, which adds ML-KEM, ML-DSA and SLH-DSA support when enabled.
- GnuTLS and NSS updated: the 2023.12 release brought GnuTLS 3.8.10 and NSS 3.112, which include ML-DSA and hybrid ML-KEM support for TLS.
- Check the active policy: run
update-crypto-policies --showto confirm the policy in effect on each host.
Before you record a result for an AL2023 host on the default policy, confirm the active policy with update-crypto-policies --show and check each application's own TLS and SSH configuration, since the crypto policy is not the only control.
On AL2023.12 or higher, you can apply the PQ subpolicy with sudo update-crypto-policies --set DEFAULT:PQ, and AWS documents that this enables hybrid ML-KEM key exchange and ML-DSA signatures in the LEGACY, DEFAULT, FUTURE or FIPS policies, for example FIPS:PQ. Once applied, the system-wide policy offers post-quantum key exchange and signatures to the components that read it, but classical algorithms remain in the set, so a connection can still negotiate a classical method if the peer does not offer a post-quantum one. The result depends on what each application actually reads from the system policy.
- Enable with a single command:
sudo update-crypto-policies --set DEFAULT:PQon AL2023.12 or higher. - Verify the result: run
update-crypto-policies --showafter the change and record the output. - Hybrid key exchange: ML-KEM is offered in hybrid form, so classical key exchange remains part of the negotiated set.
- ML-DSA signatures: the PQ subpolicy enables ML-DSA-44, ML-DSA-65 and ML-DSA-87 for the components that support them.
- Peer support decides the outcome: a post-quantum method is used only when both ends offer it, so test connections with the peers you depend on.
Before you record this state as readiness, confirm the release is at 2023.12 or higher, verify the applied policy, and test the connections that matter with their real peers to see which algorithm is actually negotiated.
AL2027 is announced as a public preview for evaluation and testing only, and its documentation says it is not recommended for production workloads. On the preview, the system-wide crypto policies enable post-quantum cryptography by default, and the documented components are OpenSSH PQC key exchange, OpenSSL 3.5, GnuTLS 3.8.10 and NSS 3.124. The default SSH configuration places the ML-KEM hybrid methods first in the key exchange list, ahead of the classical methods, and disables the legacy ssh-rsa host key algorithm.
- Post-quantum on by default: the preview's system-wide policy enables PQC without an extra command.
- Opt-out for testing: run
sudo update-crypto-policies --set DEFAULT:NO-PQto remove ML-KEM key exchange and ML-DSA signatures from the LEGACY, DEFAULT, FUTURE and FIPS policies. - OpenSSH 9.9: the preview includes OpenSSH 9.9, up from 8.7 in AL2023.
- RSA and host keys:
ssh-rsais disabled by default, RSA keys must be at least 2048 bits, and ed25519 and ECDSA host keys are generated. - Preview status: the AL2027 announcement says it uses AWS-LC for faster cryptographic operations and does not mention post-quantum cryptography, so the preview documentation is the place to check PQC status.
Before you rely on any AL2027 result, confirm that you are testing the preview rather than a production image, and record whether the NO-PQ opt-out was applied, because the default changes the set of algorithms a connection can negotiate.
FIPS mode changes which public-key algorithms a host will accept, and the AL2023 FIPS guide warns that ED25519 SSH user keys are not supported in FIPS mode. An instance launched with an ED25519 key pair can lose access after FIPS mode is enabled, so check the key types of every login before you enable it. AWS states that AL2023 cryptographic modules achieved FIPS 140-3 Level 1 validation, but the FIPS guide says it does not cover the certification status of the modules, so take validation details from the certificate listings and not from the guide.
- Enable with the documented steps: run
sudo fips-mode-setup --enable, reboot, then confirm withsudo fips-mode-setup --check, which should report that FIPS mode is enabled. - Check user keys first: identify any ED25519 SSH user keys and replace them with a supported type before enabling FIPS, because access can be lost afterwards.
- Module certificates: the AL2023 FAQ lists OpenSSL certificate 5021, GnuTLS 5015, NSS 5014, Libgcrypt 4971 and the kernel 6.1 Kernel Crypto API 5369 for FIPS 140-3 Level 1, and it says the kernel 6.12 and 6.18 modules are in validation.
- Post-quantum and FIPS together: the FIPS policy can carry the PQ subpolicy, as in
FIPS:PQ, so confirm the combined policy withupdate-crypto-policies --show. - Recovery planning: keep console or recovery access in place before the change, since a host can lock out key-only logins.
Before you record a FIPS host, confirm the fips-mode-setup --check output, list the key types in use for logins, and take module status from the certificate listings rather than from the operating system documentation alone.
Where RSA, ECDSA and Ed25519 keys sit in an Amazon Linux SSH and TLS session
The session starts with the client and server agreeing on a key exchange, where the crypto policy and the OpenSSH or OpenSSL build decide whether ML-KEM hybrid or classical ECDH and Diffie-Hellman is offered. The server then proves its identity with a host key (ed25519, ECDSA or RSA on AL2027, where ssh-rsa is disabled by default) and the client may prove its own with a user key. TLS sessions follow a similar path, with GnuTLS, NSS or OpenSSL verifying certificates. Check which algorithms your policy offers at each hand-off, since ED25519 user keys are not supported in FIPS mode.
Key exchange, host authentication and user authentication along one Amazon Linux SSH or TLS session.
How to confirm your Amazon Linux key dependencies and post-quantum settings
This sequence shows which public-key algorithms your Amazon Linux host uses for SSH, TLS and key storage, and whether post-quantum options are on. It produces a dated record you can attach to an inventory or vendor review. Run it on each release in your estate, since the defaults differ between AL2023 and AL2027.
Confirm the release and crypto policy
Start by recording which Amazon Linux release each host runs, since AL2023 and AL2027 ship different defaults. On each host, run
update-crypto-policies --showas root or with sudo, and record the policy it prints, such as LEGACY, DEFAULT, FUTURE, FIPS or a value with a PQ or NO-PQ subpolicy. The step is closed when every host in scope has a release and policy value written against its name. Note that AL2023 does not apply the PQ subpolicy by default, while AL2027 enables post-quantum cryptography in the system-wide policies by default.List SSH host and user key types
Next, list the key types the SSH server offers and the keys present on each host. Check
/etc/ssh/for host key files and runssh -Q keyandssh -Q kexto see the algorithms the installed OpenSSH build supports. For user keys, review~/.ssh/authorized_keysand any key files in/homefor the algorithm each one uses. The step is closed when you have a list of host key types, user key types and offered key exchange methods for each host. Record the OpenSSH version reported byssh -V, since AL2027 ships OpenSSH 9.9 and AL2023 ships an earlier version.Check for ssh-rsa and ED25519 user keys
Determine whether any host still depends on the legacy
ssh-rsahost key algorithm or on ED25519 user keys. On AL2027,ssh-rsais disabled by default and RSA keys must be at least 2048 bits, but the LEGACY crypto policy re-enables it, so check the policy from the first step. Search the SSH configuration withsshd -T | grep -i hostkeyalgorithmsandgrep -r ssh-rsa /etc/ssh /home. Flag any ED25519 user keys, because the AL2023 FIPS guide warns they are not supported in FIPS mode and can cause loss of access after FIPS mode is enabled. The step is closed when each host has a recorded status for ssh-rsa and ED25519 use, with any flagged keys listed by owner.Review FIPS mode state
Check whether FIPS mode is enabled on each host by running
sudo fips-mode-setup --check. The AL2023 FIPS guide documents that a successful check reports 'FIPS mode is enabled.' when the mode is on. A host that reports otherwise is not in FIPS mode, and you should record that state directly. Remember that the FIPS guide states it does not cover the certification status of the cryptographic modules, so do not treat this check as evidence of validation. The step is closed when every host has its FIPS mode state written down with the exact message the command returned.Verify OpenSSL and GnuTLS versions
Confirm the cryptographic library versions that carry post-quantum algorithms. Run
rpm -q openssl gnutls nssto get the installed package versions, andopenssl versionto confirm the active OpenSSL. The AL2023 2023.10 release notes describe OpenSSL 3.5 (openssl-3.5.5-1.amzn2023.0.3) with ML-KEM, ML-DSA and SLH-DSA support, and the 2023.12 notes describe GnuTLS 3.8.10 and NSS 3.112. Compare what each host reports against those release notes. The step is closed when each host's library versions are recorded and you have noted which hosts run builds that include post-quantum algorithms.Decide whether to apply DEFAULT:PQ or keep NO-PQ
Decide, per host or per group, whether to apply post-quantum settings. On AL2023.12 or higher, applying
sudo update-crypto-policies --set DEFAULT:PQenables hybrid ML-KEM key exchange and ML-DSA signatures, and on AL2027 a host that must turn post-quantum cryptography off runssudo update-crypto-policies --set DEFAULT:NO-PQ. Test any change on a non-production host first, since changed key exchange can affect clients that do not support the new methods. Record the decision and the reason for it. The step is closed when each host has a documented choice, the command you ran or planned to run, and a re-run ofupdate-crypto-policies --showconfirming the resulting policy.
What the vendor documentation does not state about post-quantum host and certificate keys
The Amazon Linux documentation covers post-quantum key exchange and some signatures, but the host keys and certificates that identify servers and users are a separate question. The cards below list what the checked sources do not answer, and what to ask AWS before relying on Amazon Linux for those keys.
No post-quantum SSH host keys
The AL2027 SSH configuration documents post-quantum key exchange through ML-KEM hybrid methods, and the AL2023 PQC guide documents ML-DSA signatures through the PQ subpolicy. The checked sources do not state whether SSH host keys can use a post-quantum signature algorithm. The host keys AL2027 documents are ed25519 and ECDSA, and the RSA host key requires at least 2048 bits. Ask AWS whether a post-quantum host key type is planned for SSH, and which release would carry it, before treating your server identities as post-quantum.
AL2027 SSH configNo post-quantum TLS certificate signatures
The checked sources document ML-DSA signatures for TLS in OpenSSL and GnuTLS, but they do not say that certificates issued to or by Amazon Linux systems carry those signatures. Certificate signing and trust chains sit outside what the distribution documentation describes. Ask AWS whether the distribution's certificate tooling can issue or validate ML-DSA certificates, and whether public certificate authorities that AWS services use will accept them.
No dates for AWS session authentication
The AWS post-quantum page says ML-KEM is deployed across customer-facing endpoints and that session authentication will move to PQC in the fullness of time, with no dates given. Session authentication is where signatures and keys that identify a connection are used. Ask AWS for a committed date or a documented milestone for session authentication PQC, and whether it covers connections to instances running Amazon Linux.
AWS PQC pageAL2027 preview is not for production
The AL2027 documentation says the release is for evaluation and testing only and is not recommended for production workloads. The post-quantum defaults described for AL2027, including OpenSSH 9.9 and the ML-KEM key exchange, therefore cannot yet be assumed for production servers. Ask AWS when AL2027 is expected to reach general availability, and whether the post-quantum defaults will be unchanged at that point.
AL2027 PQC guideKernel module validations still pending
The AL2023 FAQ says the kernel 6.12 cryptographic module was submitted for validation on 19 July 2025, with completion expected between July 2026 and January 2027. The kernel 6.18 module was submitted in April 2026, with completion expected in mid-2027. Until those validations complete, the kernel crypto modules on the newer kernels have no published validation result. Ask AWS which kernel version your fleet runs, and whether that module has completed validation.
AL2023 FAQAWS PQC page omits Amazon Linux
The AWS post-quantum page describes ML-KEM deployment across customer-facing AWS service endpoints, but it does not mention Amazon Linux. The Amazon Linux documentation and the AWS page therefore give different pictures of the same platform. Ask AWS to confirm in writing which post-quantum statements on the AWS page apply to instances and images running Amazon Linux, and which apply only to managed endpoints.
AWS PQC pageWhat breaks when Amazon Linux key settings change
The changes most likely to lock someone out or break a connection on Amazon Linux are the SSH key algorithm settings and the FIPS mode switch. On AL2023, the AWS FIPS guide warns that ED25519 SSH user keys are not supported in FIPS mode, and that an instance launched with an ED25519 key pair can lose access after FIPS mode is enabled. Before running sudo fips-mode-setup --enable and rebooting, confirm that every administrator login uses an RSA, ECDSA or otherwise supported key, and keep a second working session open until sudo fips-mode-setup --check reports that FIPS mode is enabled. The guide does not cover the certification status of the cryptographic modules, so treat the FIPS switch as a configuration change to test, not as a compliance outcome.
Removing the legacy ssh-rsa host key algorithm affects older clients more than current ones. On AL2027, the default SSH configuration disables ssh-rsa and requires RSA keys of at least 2048 bits, with hardened defaults set in /etc/ssh/sshd_config.d/10-amazon-hardening.conf. Clients that only offer ssh-rsa for host key verification or user authentication will fail to connect. Inventory those clients before upgrading. If a dependency still needs the legacy algorithm, the LEGACY crypto policy re-enables ssh-rsa, but that also widens the policy for every connection, so record the exception and its owner rather than applying it silently.
Post-quantum key exchange is not automatic on every release, and that matters for both compatibility and assurance. On AL2027 the default SSH configuration prefers mlkem768x25519-sha256 and the other ML-KEM methods ahead of the classical ones, while AL2023 applies the PQ subpolicy only when an administrator sets it with sudo update-crypto-policies --set DEFAULT:PQ on AL2023.12 or higher. Verify the active policy with update-crypto-policies --show after any change, because a host that was never switched to the PQ subpolicy keeps negotiating classical algorithms. Clients that do not offer ML-KEM will fall back to the remaining methods, so confirm the negotiated key exchange from the client side rather than assuming the server setting alone decides it. Separately, RPM repository signature checking needs attention: gpgcheck=1 is enabled, but repo_gpgcheck=1 is off by default on AL2023 and AL2027 and must be set in /etc/yum.repos.d/ to verify the signed repomd.xml.asc metadata.
Questions security assessors ask about Amazon Linux RSA and ECDSA dependencies
Is Amazon Linux quantum safe?
No release of Amazon Linux can be called quantum safe, and no one should describe it that way in an assessment. What the AWS documentation supports is narrower: AL2023 offers post-quantum key exchange and signatures through the PQ subpolicy once a customer enables it, and AL2027 (in public preview) turns post-quantum cryptography on by default in its system-wide crypto policies. Classic SSH key exchange, RSA, ECDSA and Ed25519 keys remain in use in both releases, and TLS certificates still depend on public-key signatures. Record the exact release, the active crypto policy from update-crypto-policies --show, and the components involved, rather than a blanket status for the distribution.
Which Amazon Linux release and policy are needed for ML-KEM?
On AL2023, the documentation says the PQ subpolicy enables hybrid ML-KEM key exchange and ML-DSA signatures in the LEGACY, DEFAULT, FUTURE or FIPS policies, and it requires AL2023.12 or higher. Run sudo update-crypto-policies --set DEFAULT:PQ (or FIPS:PQ where FIPS mode is required), then confirm with update-crypto-policies --show. The AL2023 2023.10 release notes describe OpenSSL 3.5 with ML-KEM and ML-DSA, and the 2023.12 notes describe GnuTLS and NSS support. On AL2027, the documentation says post-quantum cryptography is enabled by default in the system-wide policies. Confirm the release version and the policy on each host, because a system on an older minor release will not have the subpolicy.
Does enabling post-quantum cryptography on Amazon Linux cost extra?
The AWS documentation checked for this page does not state a licence fee or price for enabling the PQ subpolicy, and no price is given here. The cost is mainly staff time to inventory the affected services, change the policy, test SSH, TLS and application connections, and update clients that do not yet offer the new algorithms. Those costs are one-time for the change, with ongoing effort for patching and monitoring. Confirm with AWS whether any charge applies to your account or support plan, and ask your integrator for a fixed-scope quote based on the number of hosts, services and clients involved.
Can ED25519 user keys be used with FIPS mode on Amazon Linux?
No. The AL2023 FIPS guide states that ED25519 SSH user keys are not supported in FIPS mode. It also warns that an instance launched with an ED25519 key pair can lose SSH access once FIPS mode is enabled. Before you run sudo fips-mode-setup --enable, replace ED25519 user keys with RSA, ECDSA or another key type the guide allows, and confirm that each login path still works. The guide also says it does not cover the certification status of the cryptographic modules, so record that question separately for the FIPS validation in the AL2023 FAQ.
What should be asked of AWS about Amazon Linux post-quantum plans?
Ask AWS for written answers on four points. First, the dates and scope of any post-quantum support in AL2027 beyond the preview, since the announcement covers AWS-LC performance and does not mention post-quantum cryptography. Second, whether the FIPS validations listed for AL2023 cover the post-quantum algorithms you plan to use, and the status of the kernel 6.12 and 6.18 modules. Third, the support window for AL2023 and any notice of end of support. Fourth, whether AWS will sign or validate any post-quantum packages on your timeline. The AWS post-quantum page says session authentication will move to PQC "in the fullness of time" with no dates, and it does not mention Amazon Linux, so ask whether that applies to the operating system.
Can our team do the Amazon Linux post-quantum work alone?
Many teams can make the policy change on a few hosts with their own staff, since the tooling is a single command and the documentation is clear. The harder work is the inventory: finding every service, client, certificate and SSH key that depends on RSA, ECDSA or Ed25519, then testing each one after the change. Outside help is most useful when many hosts or services are involved, when FIPS mode is required, or when the team lacks someone to own the test plan. DeployOpen plans, implements and tests these changes in the client's own infrastructure under a fixed-scope written agreement, and it does not issue audit reports or certifications. Ask for a scope that names the hosts, services and evidence you need.
How DeployOpen works on this
DeployOpen starts by listing every SSH, TLS, signing and disk-encryption path on your Amazon Linux hosts that relies on RSA, Diffie-Hellman or elliptic-curve keys, then checks each one against the crypto policy, OpenSSH and OpenSSL versions you actually run. The result is a dated inventory your security and compliance teams can review and reuse.
How we scope
- Written scope names the Amazon Linux releases, AMIs and host groups in the engagement, such as AL2023 instances or AL2027 preview builds.
- Scope states which connections are inventoried, including SSH host and user keys, TLS certificates and package signing settings.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts. Ongoing support is available as a retainer.
How we build
- We record the active crypto policy with update-crypto-policies --show and compare it against the LEGACY, DEFAULT, FUTURE and FIPS settings.
- We check sshd configuration for ssh-rsa host key support, RSA key length and the key exchange order, then test the results on a staging host.
- We confirm RPM signature checking and whether repo_gpgcheck is enabled in /etc/yum.repos.d/ for each repository in use.
How we hand over
- You receive a written inventory listing each host, key type, algorithm and policy setting, dated on the day of the review.
- Every finding includes the exact configuration key or command to change, with a note on which Amazon Linux release it applies to.
- A retest confirms the hardened settings took effect, and any settings that could lock out SSH users, such as ED25519 keys in FIPS mode, are flagged before changes are made.
How we support
- Retainer support covers re-running the inventory after package updates and new Amazon Linux release versions reach your estate.
- We track vendor notices from AWS for changes to supported releases, the AWS post-quantum page and AL2027 documentation as they are published.
- Ask any provider to confirm which Amazon Linux release, policy and package version each finding refers to before accepting a quote.

