I want to use AWS Site-to-Site VPN for certificate-based Internet Protocol Security (IPsec) VPN authentication. I want this to replace the use of a pre-shared key for Internet Key Exchange (IKE) authentication.
Short description
Site-to-Site VPN supports certificate-based authentication through integration with AWS Private Certificate Authority (AWS Private CA). You can use digital certificates to build IPsec tunnels with static or dynamic customer gateway IP addresses.
Note: You can't use an external self-signed certificate for Site-to-Site VPN. For more information on certificate options, see AWS Site-to-Site VPN tunnel authentication options.
Resolution
To create a certificate-based VPN connection with Site-to-Site VPN, complete the following steps.
Create and install a root and subordinate private CA certificate
Create a root certificate authority (CA) and a subordinate CA in AWS Private CA. Only subordinate CAs hosted in AWS Certificate Manager (ACM) can issue private certificates for AWS Site-to-Site VPN.
For more information about creating a private CA, see Create a private CA in AWS Private CA.
Note: If you prefer to use an external CA, create only the subordinate CA in AWS Private CA. Install a subordinate CA certificate signed by an external parent CA.
Request or create a private certificate
Use AWS Certificate Manager (ACM) to request a private certificate for the customer gateway device that is using the subordinate CA.
Create a customer gateway
Create a customer gateway for your VPN connection:
- Open the Amazon Virtual Private Cloud (Amazon VPC) console.
- Choose Customer Gateways. Then, choose Create Customer Gateway.
- For Name, enter a name for your customer gateway.
- For Routing, select the routing type for your use case.
- For IP address, do one of the following:
Keep the field empty if the IP address is dynamic.
Keep the field empty or specify the IP address if it's static
- For Certificate ARN, choose the certificate ARN for your private certificate.
- (Optional) For Device, enter a device name.
- Choose Create Customer Gateway.
Configure the Site-to-Site VPN
Configure the Site-to-Site VPN connection and associate it with a virtual private gateway or transit gateway, depending on your network architecture. For more information, see Create a target gateway.
Copy certificates to the customer gateway device
Export the following certificates from ACM, and then import them to the customer gateway device:
- Private certificate
- Subordinate CA certificate
- Root CA certificate
Note: When the AWS VPN requests a certificate for authentication, the customer gateway device presents the private certificate. However, the customer gateway device must have all three certificates available. If any certificate is missing, then VPN authentication fails.
Related information
AWS Site-to-Site VPN customer gateway devices
Private certificate from AWS Private Certificate Authority