Where AWS Site-to-Site VPN uses cryptography: IKEv2, IPsec and keys

AWS Site-to-Site VPN uses IKEv1 or IKEv2, IPsec encryption and integrity algorithms, Diffie-Hellman groups, pre-shared keys or AWS Private CA certificates. This entry lists each one for your inventory.

On this page

Where does AWS Site-to-Site VPN use cryptography, and who should own the entry?

AWS Site-to-Site VPN uses cryptography in its IKE negotiation, its IPsec tunnels, tunnel authentication and the storage of tunnel keys. For an inventory, the entry should cover protocols and algorithm settings, certificates and pre-shared keys, the management access used to change tunnel options, firmware and updates on the customer gateway side, and integrations such as AWS Secrets Manager and AWS Private Certificate Authority. Each connection has two IPsec tunnels, each with its own public IP address and each terminating in a different Availability Zone, so the inventory should record both tunnels rather than one connection-level setting.

An inventory entry matters now because the tunnel options that govern cryptography are set per connection and can be changed later with the modify-vpn-connection-options command. The IKE version defaults to ikev1 and ikev2, the phase 1 and phase 2 encryption and integrity algorithms and Diffie-Hellman groups have documented defaults, and the rekey and lifetime values are also configurable. Export the current settings for every connection with the GetActiveVpnTunnelStatus API, which reports the encryption, integrity and Diffie-Hellman parameters of active tunnels, and record them with the connection ID and the date of the export.

The network or cloud security owner should hold this entry, with the network team that operates the customer gateway device named as a contributor. The customer gateway side is outside the service: AWS documents the supported IKE versions and the requirement that only Main mode is supported with IKEv1, but the device's own cipher support, firmware version and RFC 9370 support must be confirmed with its vendor. Record the pre-shared key storage choice (directly in the service or in AWS Secrets Manager) and, for certificate authentication, the subordinate CA in AWS Private Certificate Authority that issues the customer gateway certificate. The sources on this page do not state the algorithms used for pre-shared key or certificate authentication, so confirm those with AWS support and in the gateway's documentation before writing the entry as final.

Which AWS Site-to-Site VPN areas use cryptography, and which depend on public keys?

This table lists each cryptographic area of AWS Site-to-Site VPN, the algorithm family the AWS documentation names, whether the area depends on public-key algorithms, and where it is configured. Use it as an inventory starting point, and confirm any row marked as not documented with AWS before you record it as an answer. The main takeaway is that key exchange and tunnel authentication depend on public-key methods, while the post-quantum key exchange option is opt-in and off by default.

AreaWhat it protectsAlgorithm family and public-key dependenceWhere it is configured
IKE negotiationSetup of the IKE security association between the two tunnel endpointsIKEv1 and IKEv2 are supported. Public-key dependence comes through the key exchange and authentication choices below.Tunnel options: IKE versions, per tunnel
IPsec phase 1 encryption and integrityProtects the IKE messages that set up the tunnelDefault encryption: AES128, AES256, AES128-GCM-16, AES256-GCM-16. Default integrity: SHA1, SHA2-256, SHA2-384, SHA2-512. Symmetric algorithms, so no public-key dependence.Tunnel options: Phase 1 encryption and integrity algorithms
IPsec phase 2 encryption and integrityProtects the data traffic carried by the tunnelUses the same default families as phase 1. Symmetric algorithms, so no public-key dependence.Tunnel options: Phase 2 encryption and integrity algorithms
Diffie-Hellman key exchangeDerives the shared keys for phase 1 and phase 2Public-key key exchange. Default phase 1 groups include 2, 14 through 24. Default phase 2 groups include 2, 5, 14 through 24.Tunnel options: Phase 1 and Phase 2 Diffie-Hellman groups
Pre-shared key authenticationAuthenticates the two endpoints to each otherDefault authentication method. The sources do not state the algorithm behind the key, so confirm it with AWS. The key exchange still uses public-key groups.Tunnel options: pre-shared key, 8 to 64 characters, cannot start with zero
Certificate authentication through AWS Private CAAuthenticates the customer gateway with a private certificateCertificate chain uses a subordinate CA in AWS Private Certificate Authority. Public-key dependence applies, and the sources do not state the certificate key algorithm.AWS Private Certificate Authority, then the tunnel authentication option
Pre-shared key storage in AWS Secrets ManagerStores the pre-shared key outside the VPN serviceStorage choice only. The sources do not describe the encryption used by Secrets Manager for this key.Tunnel options: Pre-shared key storage (VPN service or Secrets Manager)
Management access through the AWS API and consoleControls who can change tunnel options and read tunnel parametersThe sources do not describe the algorithms behind AWS management access. Service-managed and not documented in the sources. Confirm with AWS.AWS account, IAM policies, AWS API and console
Firmware and updatesUpdates to the AWS endpoints that terminate tunnelsService-managed by AWS and not documented in the sources. Customers do not configure it. Confirm with AWS before recording an answer.Not customer-configured. Confirm with AWS.

Which IKE and IPsec settings choose the algorithms on AWS Site-to-Site VPN?

The IKE version tunnel option controls which key exchange protocol the tunnel accepts. The documented default is ikev1 and ikev2, so both versions are offered unless an administrator removes one to restrict the tunnel. AWS states that the Site-to-Site VPN service is route-based only and that policy-based VPNs are not supported. On the customer gateway side, AWS lists IKEv1 and IKEv2 as supported, but says only Main mode is supported with IKEv1.

  • Default versions: The IKE version option defaults to ikev1 and ikev2.
  • Restricting to IKEv2: Removing ikev1 from the list limits the tunnel to IKEv2.
  • Main mode only: With IKEv1, only Main mode is supported, not Aggressive mode.
  • Route-based only: Policy-based VPN configurations are not supported by the service.
  • Post-quantum prerequisite: Hybrid post-quantum key exchange requires IKEv2, and a required additional key exchange cannot be set when the IKE versions list contains only ikev1.

Confirm which versions each tunnel negotiates with the GetActiveVpnTunnelStatus API and with your customer gateway's configuration, since the gateway may prefer one version over the other.

How do administrators reach AWS Site-to-Site VPN settings, and what protects that path?

Tunnel options for an AWS Site-to-Site VPN connection are set in two places: when the connection is created, and later through a change to an existing connection. An administrator can make that change in the AWS console, through the AWS API, or with the modify-vpn-connection-options command. The same options that control phase 1 and phase 2 encryption algorithms, integrity algorithms, Diffie-Hellman groups, IKE versions and post-quantum additional key exchanges all live in this configuration surface, so whoever holds permission to change it can change the cryptography of the tunnels. To see what an active tunnel is actually using, the GetActiveVpnTunnelStatus API reports the encryption, integrity and Diffie-Hellman parameters negotiated for each tunnel. Administrators should use this call, not the saved configuration alone, to confirm what is live.

The sources for this page describe AWS Identity and Access Management (IAM) and the AWS API as the access path to these settings. They do not describe the internals of the management protocol, such as how requests are authenticated at the transport layer, how credentials are protected in transit, or which algorithms the API endpoints use. Treat the management plane as an access-control boundary that is documented at the level of IAM policy and API calls, and do not record it as having a specific post-quantum property unless AWS states one.

In your own AWS account, confirm which IAM principals and roles can call modify-vpn-connection-options, CreateVpnConnection and the console actions that change tunnel options, and review whether those permissions are limited to the people who should hold them. Check the CloudTrail events for changes to VPN connections, so you have a record of who altered tunnel settings and when. Then run GetActiveVpnTunnelStatus on each connection and compare the reported parameters with your intended configuration. Record the results as dated evidence for your inventory, because a saved setting and the negotiated tunnel can differ.

What firmware and update channels does AWS Site-to-Site VPN have, and who controls them?

AWS Site-to-Site VPN has two layers of software that matter for post-quantum planning: the AWS-managed gateway, which the customer cannot patch, and the customer gateway device, which the customer owns. The sources listed on this page do not describe how AWS signs its gateway software or whether any secure boot chain applies, so confirm those points with AWS before relying on them.

AWS-managed gateway software

The VPN endpoints that terminate each IPsec tunnel run on AWS infrastructure, and AWS maintains their software. The customer cannot install, roll back or pin firmware on these endpoints, and the sources listed on this page do not describe an update schedule or a customer notice period for changes to them. For post-quantum planning, the practical question is whether the endpoint will accept the key exchange options you configure, which the tunnel options page governs. Confirm with AWS whether a given endpoint version supports the ML-KEM methods before enabling them.

Tunnel options

Customer gateway device firmware

The customer gateway device, which is the on-premises or colocation router or firewall on your side of the tunnel, is controlled entirely by you or your hardware vendor. Post-quantum rounds depend on this device: AWS states that the customer gateway must support RFC 9370 and the chosen key exchange method, or the tunnel will not establish when a round is marked required. Check the device's firmware release notes for RFC 9370 and ML-KEM support, and plan firmware upgrades alongside any change to the tunnel options.

Data protection

License and subscription channels

The sources listed on this page do not describe any license, subscription or entitlement that gates AWS Site-to-Site VPN features or firmware. Customer gateway vendors may use licenses or subscriptions for their own features, including IPsec or security functions, and those terms are set by that vendor. Ask your gateway vendor whether post-quantum support requires a license tier, and ask AWS whether the service itself has any entitlement requirement for the options described on the tunnel configuration page.

VPN FAQs

Signing and secure boot

The sources listed on this page do not document how AWS signs its gateway software, whether the endpoints use secure boot, or how a customer could verify an update. The same gap applies to most customer gateway vendors' signing schemes, which are not described here. Treat this as an open question for both sides: ask AWS for its firmware signing and verification process, and ask your gateway vendor the same, because you need to know whether an update that adds post-quantum support can be verified before installation.

Which fields should each AWS Site-to-Site VPN tunnel record in your inventory?

This table lists the fields to record for each Site-to-Site VPN connection and for each of its two tunnels, and marks whether you can configure each field or AWS fixes it. Use it to build an inventory that shows which tunnel settings you control and which key and algorithm values need confirmation in your own environment. The main takeaway is that tunnel-level records, not just connection records, are needed to answer post-quantum questions, because each tunnel has its own public IP and its own configured options.

FieldScopeCustomer-configurable or fixed by AWSNotes
Connection IDPer connectionAssigned by AWSIdentifies the connection that owns both tunnels, and the key you use to query its options.
Tunnel public IPPer tunnel (two per connection)Assigned by AWSEach tunnel has its own unique public IP address, so record both.
Availability ZonePer tunnelAssigned by AWSAWS says each tunnel terminates in a different Availability Zone.
IKE versionPer tunnelCustomer-configurableDefaults to ikev1 and ikev2. Remove either to restrict the tunnel. Additional key exchange requires IKEv2.
Phase 1 encryption algorithmsPer tunnelCustomer-configurableDefaults are AES128, AES256, AES128-GCM-16 and AES256-GCM-16.
Phase 1 integrity algorithmsPer tunnelCustomer-configurableDefaults are SHA1, SHA2-256, SHA2-384 and SHA2-512.
Phase 2 encryption and integrity algorithmsPer tunnelCustomer-configurableSet through their own tunnel options, with defaults listed in AWS tunnel option documentation.
Diffie-Hellman groups (phase 1 and phase 2)Per tunnelCustomer-configurablePhase 1 defaults include groups 2 and 14 through 24. Phase 2 defaults include groups 2, 5 and 14 through 24. Record the values active on each tunnel.
Phase 1 and phase 2 lifetimesPer tunnelCustomer-configurablePhase 1 defaults to 28,800 seconds (range 900 to 28,800). Phase 2 defaults to 3,600 seconds (range 900 to 3,600).
Rekey margin, rekey fuzz and replay windowPer tunnelCustomer-configurableDefaults are 270 seconds, 100 percent and 1024 packets. Confirm the active values with the tunnel status API.
Authentication typePer tunnelCustomer-configurablePre-shared key is the default. Certificate authentication uses AWS Private Certificate Authority.
Pre-shared key storage locationPer tunnelCustomer-configurableChoose the Site-to-Site VPN service or AWS Secrets Manager through the pre-shared key storage option.
Certificate issuer and expiryPer tunnel, certificate authentication onlyCustomer-issued, expiry set by your CARecord the subordinate CA in AWS Private Certificate Authority and the certificate expiry date. Blank for pre-shared key tunnels.
Additional key exchange configurationPer tunnel, phase 1 and phase 2Customer-configurable, empty by defaultOpt-in hybrid post-quantum round using methods 35, 36 or 37 (ML-KEM). No round is configured by default.
Additional key exchange required settingPer configured roundCustomer-configurable, defaults to requiredIf a required round is not negotiated by your customer gateway device, the tunnel is not established.
Data confidentiality periodPer connection, set by your organizationSet by your organizationThe sources listed on this page do not define how AWS treats data confidentiality periods. Record your own period and confirm the relevant requirement with your compliance owner.

Which AWS Site-to-Site VPN items depend on public-key algorithms?

The public-key dependency in AWS Site-to-Site VPN sits in the IKE key exchange. The documented way tunnel keys are agreed is Diffie-Hellman, configured through the Phase 1 and Phase 2 Diffie-Hellman group tunnel options. Phase 1 defaults include groups 19, 20, 21 and 24, which are ECP groups, alongside the other supported groups. Diffie-Hellman is what establishes the shared secret from which the tunnel keys are derived, so an inventory should record it as the main public-key item in the data path. Confirm with AWS which groups your connection currently negotiates, since the defaults are a range and a customer can restrict the list with the modify-vpn-connection-options command. The GetActiveVpnTunnelStatus API reports the Diffie-Hellman parameters of an active tunnel, which gives you a way to check the live result.

Authentication adds a second set of keys whose algorithms AWS does not state on its tunnel authentication page. With the default pre-shared key, the key is a shared secret that is not a public-key item, but the IKE exchange around it still depends on the key exchange above. With certificate authentication, the customer creates a private certificate from a subordinate CA in AWS Private Certificate Authority, and the service validates the customer gateway certificate chain, including the Authority Key Identifier, Subject Key Identifier and Basic Constraints extensions. That certificate and the CA key sit in the public-key category, and the algorithm of each should be read from the CA configuration in your own account, not assumed from the service documentation. Pre-shared key storage, either in the Site-to-Site VPN service or in AWS Secrets Manager, is a separate inventory item to record for each connection.

The encryption and integrity algorithms are symmetric algorithms and hashes, not public-key items. The default phase 1 and phase 2 encryption algorithms are AES128, AES256, AES128-GCM-16 and AES256-GCM-16, and the default integrity algorithms are SHA1, SHA2-256, SHA2-384 and SHA2-512. They protect the data once the keys exist, so they belong in the inventory as a separate row from the key exchange. For the detail on which RSA and elliptic-curve dependencies remain in each setting and which stronger options exist today, see the sibling page on RSA and elliptic-curve dependencies. This section only maps where the public-key items sit.

How do the two IPsec tunnels and IKE negotiation fit into the path between sites?

The diagram starts at the customer gateway, which opens two IPsec tunnels to AWS Site-to-Site VPN, one to each public IP address, and each terminating in a different Availability Zone. Each tunnel first runs IKE phase 1, authenticated with either a pre-shared key or a certificate from AWS Private Certificate Authority, and performs a Diffie-Hellman exchange. Phase 2 then creates the IPsec security associations that protect the traffic. The optional additional key exchange round, which is off by default, can be configured in both phases. Check that the customer gateway supports the chosen IKE version and key exchange method, and confirm the tunnel options on each tunnel.

Two tunnels, each authenticated in IKE phase 1 before phase 2 IPsec SAs are created.

How do you gather the AWS Site-to-Site VPN values for your inventory?

This sequence records each connection's tunnel options, active tunnel parameters, pre-shared key storage, certificate sources and customer gateway settings, so the inventory shows exactly which algorithms, key exchanges and keys each VPN connection uses today. Work through it per connection, and record the value and its source for each item.

  1. List every Site-to-Site VPN connection

    List the VPN connections in each account and Region with the AWS CLI command describe-vpn-connections or the VPN connections page in the console. Record each connection ID, its virtual private gateway or transit gateway, its customer gateway, and the Region. Confirm that each connection has two tunnels, each with its own public IP address and its own Availability Zone, as the AWS VPN tunnels page describes. The step is done when every connection in scope appears in your list with its two tunnel addresses noted.

  2. Read the tunnel options for each connection

    For each connection, read the TunnelOptions values in the output of describe-vpn-connections, or the tunnel options section of the connection in the console. Record the IKE versions, the Phase 1 and Phase 2 encryption and integrity algorithms, the Diffie-Hellman groups, the lifetimes, and the additional key exchange settings. Note whether the IKE versions list includes ikev2 and whether any additional key exchange option is set, because the AWS configure tunnel options page says the post-quantum option is opt-in and empty by default. The step closes when each connection's tunnel options are written in your inventory with the values as returned.

  3. Confirm active tunnel parameters

    Call the GetActiveVpnTunnelStatus API for each tunnel, or use the equivalent output in your tooling, to see the parameters a tunnel actually negotiated. Compare these with the configured options from the previous step, since the API reports the encryption, integrity and Diffie-Hellman parameters of active tunnels. Record any difference, because the configured list can allow several options and the active one is what the tunnel uses. The step is done when each tunnel has its active parameters recorded next to its configured options.

  4. Identify where each pre-shared key is stored

    For each connection that uses pre-shared key authentication, check the Pre-shared key storage tunnel option in the console or the tunnel options output. Record whether the key is stored in the Site-to-Site VPN service or in AWS Secrets Manager. If it is in Secrets Manager, record the secret name and the Region, and check that the secret's key policy and access are as your security team expects. Do not copy the key value into the inventory. The step closes when each connection has its storage location recorded against its tunnel.

  5. List AWS Private CA certificates used for authentication

    For each connection that uses certificate authentication, identify the private certificate and the subordinate CA in AWS Private Certificate Authority that issued it, using the AWS Private CA console or the list and describe commands in the AWS CLI. Record the CA name and ARN, the certificate's subject and expiry date, and the CA chain that the VPN service checks, including the Authority Key Identifier, Subject Key Identifier and Basic Constraints extensions. Note any connection that uses pre-shared keys instead, so the inventory shows both methods. The step is done when every certificate-based connection has its CA and certificate recorded.

  6. Read the customer gateway device configuration

    On each customer gateway device, read the IKE and IPsec configuration for the tunnel and compare it with the AWS values from the earlier steps. Record the IKE version, the proposal list, the key exchange groups, any additional key exchange round the device supports, and the authentication method. Check that the device supports RFC 9370 and the chosen method if you plan to use additional key exchanges, since the AWS data protection page says the device must support it. The step closes when each device's values are recorded beside the AWS values, and any mismatch is flagged for review.

  7. Ask AWS support about undocumented points

    Where the AWS documentation does not state a value you need, such as the algorithms behind the pre-shared key or certificate keys, open a case with AWS support and ask for the answer in writing. The documentation reviewed here does not state the algorithms for those keys, and it does not describe a post-quantum signature or certificate option for tunnel authentication. Record the question, the date you asked it, the response and the support case reference. The step is done when each open question has a written answer or a note that AWS has not confirmed it.

What do security and network reviewers ask about AWS Site-to-Site VPN cryptography?

Does the cryptography entry for AWS Site-to-Site VPN list every cryptographic use?

Not automatically. The entry covers the cryptography AWS documents for the tunnel: the IKE version, the phase 1 and phase 2 encryption and integrity algorithms, the Diffie-Hellman groups, the rekey and lifetime settings, and the authentication method. Reviewers should also record the places where the customer side adds cryptography, such as the customer gateway device, its certificates, and any pre-shared key storage in AWS Secrets Manager. Before signing off, confirm the list against the tunnel options actually set on each connection, because the documented defaults are a starting point and not a record of your configuration.

Which AWS Site-to-Site VPN tunnel fields matter most for a cryptography inventory?

The fields that determine the algorithms in use matter most: the IKE versions list, the phase 1 and phase 2 encryption and integrity algorithms, the Diffie-Hellman groups, and the additional key exchanges settings. Next, record the authentication method and where the pre-shared key is stored. Lifetimes, rekey margin and replay window size are useful context but change the security profile less. Read the values with the GetActiveVpnTunnelStatus API for each tunnel, since it reports the parameters of active tunnels, and compare them with the configuration you intended.

Do AWS Site-to-Site VPN tunnel options cost extra?

The sources this entry relies on do not state a price for tunnel options, so confirm pricing with AWS or in the current VPN pricing documentation before you rely on it. Cost drivers to ask about are the number of connections, the data transferred and any charges for storing the pre-shared key in AWS Secrets Manager, which is a separate service with its own pricing. Also ask whether certificate authentication adds costs through AWS Private Certificate Authority, which charges separately. Ask your account team for these figures in writing.

What should I ask AWS about firmware and key algorithms for Site-to-Site VPN?

Ask AWS which algorithms the service uses for the public-key operations in authentication, since the authentication documentation does not state the key algorithms for pre-shared key or certificate authentication. Ask which post-quantum key exchange options are available and whether they are supported by each tunnel endpoint. On the customer side, ask your gateway vendor whether its device supports RFC 9370 and the ML-KEM methods 35, 36 and 37 before you plan any change. Request written answers, dated, and record the version or configuration each answer applies to.

Can our team collect the Site-to-Site VPN cryptography data ourselves or do we need help?

Most of the data can be collected by a network or cloud team with access to the AWS console or the API. Read each connection's tunnel options, check the IKE version and algorithm lists, and call GetActiveVpnTunnelStatus for active tunnel parameters. The gaps are the customer gateway configuration, the algorithm choices of the device, and the key algorithms of the pre-shared key or certificate, which AWS does not state. Bring in your gateway vendor or an external assessor for those. If your team lacks the access or the time, DeployOpen can plan and document the inventory as a fixed-scope engagement, with scope and deliverables agreed in writing before work starts.

How often should the Site-to-Site VPN cryptography entry be refreshed?

Refresh it whenever a tunnel option changes, a connection is created or modified, a customer gateway device is updated, or AWS publishes a change to the service. As a baseline, review it on a schedule your change process already uses, such as quarterly, and confirm it with the active tunnel status after each change. Record the date of each review and the source you checked, so the entry shows when the information was last verified. Set the review interval with your compliance owner, since the sources here do not prescribe one.

How DeployOpen helps build a cryptographic inventory for AWS Site-to-Site VPN

DeployOpen works through the tunnel options, authentication settings and key storage that AWS Site-to-Site VPN exposes, so each setting in use can be recorded with its value and source. The result is an inventory your network and security teams can check against the AWS documentation and your own tunnel configuration.

How we scope

  • We agree the written scope before work starts, naming the VPN connections, customer gateways and AWS accounts in it.
  • We confirm which IKE versions, phase 1 and phase 2 algorithms, and Diffie-Hellman groups each tunnel accepts today.
  • We record whether each tunnel uses a pre-shared key or a certificate from AWS Private Certificate Authority, and where the key is stored.

How we build

  • We read the live tunnel options and the GetActiveVpnTunnelStatus output to capture the encryption, integrity and Diffie-Hellman parameters in use.
  • We map each public-key use, including Diffie-Hellman key exchange and certificate chains, to the tunnel option or authentication setting that controls it.
  • We check whether the additional key exchange options for ML-KEM are configured, noting that they default to an empty list and are off until set.

How we hand over

  • We deliver an inventory listing each connection, tunnel, setting, value and the AWS documentation page it was checked against.
  • We flag settings that the documentation does not state, such as the algorithms behind pre-shared key and certificate authentication, for confirmation with AWS.
  • We record the date of each check, since AWS documentation and tunnel settings can change after the inventory is written.

How we support

  • Ongoing support and periodic re-inventory are available as a retainer, so changes to tunnel options are captured as they happen.
  • We can retest the inventory after a tunnel setting change or a new customer gateway is added to the scope.
  • Questions about AWS roadmap or vendor notices are answered from published AWS documentation, which we cite rather than extend.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.