Adding the SSL option
To use SSL, your RDS for Oracle DB instance must
be associated with an option group that includes the SSL
option.
To add the SSL option to an option group
-
Create a new option group or identify an existing option group to which you can add the
SSLoption.For information about creating an option group, see Creating an option group.
-
Add the
SSLoption to the option group.If you want to use only FIPS-verified cipher suites for SSL connections, set the option
FIPS.SSLFIPS_140toTRUE. For information about the FIPS standard, see FIPS support.For information about adding an option to an option group, see Adding an option to an option group.
-
Create a new RDS for Oracle DB instance and associate the option group with it, or modify an RDS for Oracle DB instance to associate the option group with it.
For information about creating an DB instance, see Creating an Amazon RDS DB instance.
For information about modifying an DB instance, see Modifying an Amazon RDS DB instance.
To add the SSL option to an option group
-
Create a new option group or identify an existing option group to which you can add the
SSLoption.For information about creating an option group, see Creating an option group.
-
Add the
SSLoption to the option group.Specify the following option settings:
-
Port– The SSL port number -
VpcSecurityGroupMemberships– The VPC security group for which the option is enabled -
SQLNET.SSL_VERSION– The TLS version that client can use to connect to the DB instance
For example, the following Amazon CLI command adds the
SSLoption to an option group namedora-option-group.Example
For Linux, macOS, or Unix:
aws rds add-option-to-option-group --option-group-name ora-option-group \ --options 'OptionName=SSL,Port=2484,VpcSecurityGroupMemberships="sg-68184619",OptionSettings=[{Name=SQLNET.SSL_VERSION,Value=1.2}]'For Windows:
aws rds add-option-to-option-group --option-group-name ora-option-group ^ --options 'OptionName=SSL,Port=2484,VpcSecurityGroupMemberships="sg-68184619",OptionSettings=[{Name=SQLNET.SSL_VERSION,Value=1.2}]'You can also specify cipher suites with the
SQLNET.CIPHER_SUITEoption setting. To specify multiple cipher suites, separate them with commas, don't include spaces, and enclose the value in double quotation marks. Without the quotation marks, the Amazon CLI treats each comma as a separator between option settings.The following example adds the
SSLoption with two cipher suites and TLS 1.2.Example
For Linux, macOS, or Unix:
aws rds add-option-to-option-group --option-group-name ora-option-group \ --options 'OptionName=SSL,Port=2484,VpcSecurityGroupMemberships="sg-68184619",OptionSettings=[{Name=SQLNET.SSL_VERSION,Value=1.2},{Name=SQLNET.CIPHER_SUITE,Value="TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"}]'Alternatively, define the option in a JSON file and pass the file with
file://. This approach works on any operating system and avoids quoting issues. For example, create a file namedssl-option.jsonwith the following content.[ { "OptionName": "SSL", "Port": 2484, "VpcSecurityGroupMemberships": ["sg-68184619"], "OptionSettings": [ { "Name": "SQLNET.SSL_VERSION", "Value": "1.2" }, { "Name": "SQLNET.CIPHER_SUITE", "Value": "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" } ] } ]Then run the following command.
aws rds add-option-to-option-group --option-group-name ora-option-group --options file://ssl-option.json -
-
Create a new RDS for Oracle DB instance and associate the option group with it, or modify an RDS for Oracle DB instance to associate the option group with it.
For information about creating an DB instance, see Creating an Amazon RDS DB instance.
For information about modifying an DB instance, see Modifying an Amazon RDS DB instance.