TLS Encryption¶
This section contains declarations use SSL/TLS certificates and keys. See the FAQ for information on why BIG-IP AS3 and the BIG-IP use different naming conventions for Client and Server TLS.
Use the index on the right to locate specific examples.
Important
Most of the example declarations have been updated in the documentation for BIG-IP AS3 3.20 to remove any template that was specified, and rename any virtual services that used the name serviceMain to service. In BIG-IP AS3 3.20, the generic template is the default, which allows services to use any name.
This also means that many of these declarations on a version prior to 3.20 they will fail unless you add a template. See this FAQ entry and this Troubleshooting entry for more information.
Referencing an existing SSL certificate and key in the Common partition¶
This example shows how to reference an SSL certificate and key that exist in the Common partition. For more information, see our video on referencing existing objects, including SSL certificates and keys, at https://www.youtube.com/watch?v=b55noytozMU.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_cert_01.
- A virtual server named service.
- A pool named pool monitored by the default http health monitor.
- TLS/SSL profile (which references the default BIG-IP certificate and key in the Common partition) named pTlsServer_Local. In the BIG-IP UI, this is called a Client SSL profile.
{
"class": "ADC",
"id": "myid",
"schemaVersion": "3.0.0",
"controls": {
"class": "Controls",
"trace": true,
"logLevel": "debug"
},
"Sample_cert_01": {
"class": "Tenant",
"test_https": {
"class": "Application",
"pool": {
"class": "Pool",
"members": [
{
"serverAddresses": [
"192.0.2.100"
],
"servicePort": 8080
}
],
"monitors": [
"http"
]
},
"service": {
"class": "Service_HTTPS",
"persistenceMethods": [],
"pool": "pool",
"serverTLS": "pTlsServer_Local",
"snat": "auto",
"virtualAddresses": [
"192.168.0.2"
],
"virtualPort": 443
},
"pTlsServer_Local": {
"class": "TLS_Server",
"label": "simplest decl requires just cert",
"certificates": [
{
"certificate": "tlsserver_local_cert"
}
]
},
"tlsserver_local_cert": {
"class": "Certificate",
"certificate": {"bigip":"/Common/default.crt"},
"privateKey": {"bigip":"/Common/default.key"}
}
}
}
}
Using multiple SSL/TLS certificates in a single profile¶
This simple example shows how you can use multiple SSL/TLS certificates in a single TLS_Server object in BIG-IP AS3 3.7.0 and later. See the Schema Reference for usage options for using these features in your BIG-IP AS3 declarations.
Note
The example declaration has been updated with the BIG-IP AS3 3.24 release to include a chainCA (a bundle of one or more CA certificates in trust-chain from root CA to certificate). It has also been updated in 3.44 to include the sniDefault property for TLS_Server certificates and TLS_Client. When sniDefault is set to true, this profile is the default SSL profile when a client connection does not specify a known server name, or does not specify any server name at all. The default value is false.
This declaration creates the following objects on the BIG-IP:
- A partition (tenant) named Sample_cert_02.
- Two certificates named webcert1 and webcert2,
- A client SSL profile for each certificate named webtls and webtls-1-,
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "123abc",
"label": "Multiple certificates example",
"remark": "Using multiple certificates",
"Sample_cert_02": {
"class": "Tenant",
"A1": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.19"
],
"serverTLS": "webtls"
},
"webtls": {
"class": "TLS_Server",
"certificates": [{
"certificate": "webcert1"
},
{
"certificate": "webcert2",
"sniDefault": true
}]
},
"webcert1": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1a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PgSNpdg0b\nCAJNG/KHe+Vkx59qNDyDeKb7FZOlsX30+y67zUq9GQqJEDuysPJ2BUNP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
},
"webcert2": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFow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-256-CBC,D8FFCE6B255601587CB54EC29B737D31\n\nkv4Fc3Jn0Ujkj0yRjt+gQQfBLSNF2aRLUENXnlr7Xpzqu0Ahr3jS1bAAnd8IWnsR\nyILqVmKsYF2DoHh0tWiEAQ7/y/fe5DTFhK7N4Wml6kp2yVMkP6KC4ssyYPw27kjK\nDBwBZ5O8Ioej08A5sgsLCmglbmtSPHJUn14pQnMTmLOpEtOsu6S+2ibPgSNpdg0b\nCAJNG/KHe+Vkx59qNDyDeKb7FZOlsX30+y67zUq9GQqJEDuysPJ2BUNP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
}
Using matchToSNI with a TLS_Server profile¶
In this declaration, we add the matchToSNI parameter. When you use matchToSNI with a value of an FQDN, the system ignores all names in the certificate and selects this cert when SNI matches value (or by default).
Note
The example declaration has been updated with the BIG-IP AS3 3.24 release to include a chainCA (a bundle of one or more CA certificates in trust-chain from root CA to certificate).
This declaration creates the following objects on the BIG-IP:
- A partition (tenant) named Sample_cert_03.
- A certificate named webtls.
- A TLS_Server object (SSL profile on the BIG-IP) containing two certificates and keys (webcert1 and webcert2), the first of which uses matchToSNI. See the FAQ for information on why BIG-IP AS3 and the BIG-IP use different naming conventions for Client and Server TLS.
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "123abc",
"label": "test",
"remark": "test",
"Sample_cert_03": {
"class": "Tenant",
"A1": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.19"
],
"serverTLS": "webtls"
},
"webtls": {
"class": "TLS_Server",
"certificates": [{
"matchToSNI": "wwww.domain.com",
"certificate": "webcert1"
},
{
"certificate": "webcert2"
}]
},
"webcert1": {
"class": "Certificate",
"remark": "test",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e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+Vkx59qNDyDeKb7FZOlsX30+y67zUq9GQqJEDuysPJ2BUNP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
},
"webcert2": {
"class": "Certificate",
"remark": "test",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgM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\nkv4Fc3Jn0Ujkj0yRjt+gQQfBLSNF2aRLUENXnlr7Xpzqu0Ahr3jS1bAAnd8IWnsR\nyILqVmKsYF2DoHh0tWiEAQ7/y/fe5DTFhK7N4Wml6kp2yVMkP6KC4ssyYPw27kjK\nDBwBZ5O8Ioej08A5sgsLCmglbmtSPHJUn14pQnMTmLOpEtOsu6S+2ibPgSNpdg0b\nCAJNG/KHe+Vkx59qNDyDeKb7FZOlsX30+y67zUq9GQqJEDuysPJ2BUNP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
}
Using PKCS 12 in a declaration¶
This example shows how you can use PKCS 12 in your declarations. See the Schema Reference for usage options for using these features in your BIG-IP AS3 declarations.
Important notes about BIG-IP AS3 and PKCS
There are two passphrases used for p12/pfx: file protection (import/export integrity) and private key passphrase (encryption). BIG-IP AS3 only supports using the same passphrase for both. The BIG-IP Configuration Utility (GUI) supports using different password values. However, openSSL CLI notes that most software only handles the scenario where both passphrases have the same value. For more information, see -twopass arg for openssl.
If you use the OpenSSL CLI to generate the PKCS12 file, and at the passphrase prompt you don’t type a passphrase and just press Enter, the system actually creates an empty file (so pressing Enter does not mean there is no password). To account for this in a declaration, you must add the following to your declaration:
"passphrase": { "ciphertext": "IA==", "protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0", "ignoreChanges": true },
If you do not expect the PKCS12 value to change on subsequent deployments of the declaration, set the following property to true:
pkcs12Options: { ignoreChanges: true }
. If you leave this property set to the default of false (or omit this property), a diff is detected because of the nature of the encrypted value of the private key.For the property keyImportFormat (
pkcs12Options: { keyImportFormat: "<pkcs8 or openssl-legacy>" }
, the default value is pkcs8, which saves the private key in PEM format:
(---BEGIN ENCRYPTED PRIVATE KEY---)
.
If it is set to openssl-legacy, it is saved with headers:-----BEGIN RSA PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: AES-128-CBC,D019D34F0792CEAB8CD895E6F29437D6
This declaration creates the following objects on the BIG-IP:
- A partition (tenant) named Sample_cert_04.
- A certificate named pkcs_crt.crt.
- In this example, my_12.p12 contains one cert, so the following objects are created: a certificate named pkcs12_crt_key_encr_url.crt and an encrypted private key named pkcs12_crt_key_encr_url.key, with key password value of “password”.
- In this example, my_pfx.pfx contains multiple certs, so the following object is created: a cert bundle named pkcs12_crt_key_encr_bundle_url containing multiple certs.
{
"class": "ADC",
"schemaVersion": "3.7.0",
"id": "TEST_PKCS12",
"remark": "Test PKCS12",
"example_cert_04": {
"class": "Tenant",
"TEST_Certificate": {
"class": "Application",
"pkcs12_crt": {
"class": "Certificate",
"remark": "generated with openssl cli - empty password on prompt",
"passphrase": {
"ciphertext": "IA==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0",
"ignoreChanges":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frWWlNW+urwPqEz8i6eDj+/zBlCd6JfXxVgXy8ctHwqKChBNDyimVBvXDD6zIySnazdYVcYycfnSbNo4p2VWztF4C6CvqqOtN39I11LZZ1okZsxpacQEU3nhaRXHw+bMrHfRZNlt5RmCIYnNuB6qTBjL9yaaq/9BNzW2dQnRP2OkeIbfVJN3N00Sey0sbsXUlajEMJW7Efsz6iHtOXZkeTdu8ME7eGBsaRNAX5tcDqMJjnxhGsZSmxLNHW+5OnmNB54sdEMhyM/wYEbxGh6qQEPtbdBhSZIuXiSkfmtI64IdKhBYpLl2rUxDB+nLZisRgea3xCBDxHVd7c0e9u67lT3GetAmFX2GOTA5+a8k3zXnj6te+gN+9ZJhVCOasifNzKpk7WLwZXAgnFWtuXjAxMCEwCQYFKw4DAhoFAAQUL+jxIL4tVgP9Hb2ux92Idbur6QEECEfy4yQcB7vhAgIIAA==" }
},
"pkcs12_crt_key_encr_url": {
"class": "Certificate",
"remark": "saves encr key in openssl format",
"passphrase": {
"ciphertext": "cGFzc3dvcmQ=",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0",
"ignoreChanges": true
},
"pkcs12Options": {
"keyImportFormat": "openssl-legacy"
},
"pkcs12": {
"url": "https://mycompany/certs/my_p12.p12" }
},
"pkcs12_crt_key_bundle": {
"class": "Certificate",
"remark": "multiple certs, no passphrase, ignore change on redeploy",
"pkcs12Options": {
"keyImportFormat": "openssl-legacy",
"ignoreChanges": true
},
"pkcs12": {
"url": "http://mycompany/certs/my_pfx.pfx" }
}
}
}
}
Enabling and disabling clientSSL (server SSL profile) from Endpoint policies¶
This simple example shows how you can enable or disable clientSsl (a Server SSL profile to the BIG-IP) from an Endpoint policy (LTM Policy to the BIG-IP) in your declaration. See the FAQ for information on why BIG-IP AS3 and the BIG-IP use different naming conventions for Client and Server TLS. The actions for clientSsl and serverSsl follow this same naming convention in AS3.
See the Schema Reference for usage options and information on Endpoint policies. You can also see Application Security for example policy declarations.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_cert_05.
- An endpoint policy named testItem.
- A rule named requestRule.
- An action for clientSsl with a value of true. You could use false to disable clientSsl (the Server SSL profile).
{
"class": "ADC",
"schemaVersion": "3.7.0",
"id": "Endpoint_Policy",
"Sample_cert_05": {
"class": "Tenant",
"Application": {
"class": "Application",
"testItem": {
"class": "Endpoint_Policy",
"rules": [{
"name": "requestRule",
"actions": [{
"type": "clientSsl",
"enabled": true
}]
}]
}
}
}
}
HTTP and HTTPS virtual services in one declaration¶
This example creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_http_04.
- An HTTP virtual server named service (called _A1 in the BIG-IP GUI) and an HTTPS virtual server named A2.
- A pool named gce_pool and a pool named web_pool, each containing two members using the HTTP health monitor.
- TLS/SSL profile (including certificate and private key) named TLS_Server. In the BIG-IP UI, this is a Client SSL profile. See the FAQ for information on why BIG-IP AS3 and the BIG-IP use different naming conventions for Client and Server TLS.
Note
The example declaration has been updated with the BIG-IP AS3 3.24 release to include a chainCA (a bundle of one or more CA certificates in trust-chain from root CA to certificate).
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "lmnop543421",
"label": "Sample 4",
"remark": "An HTTP and an HTTPS application",
"controls": {
"trace": true
},
"Sample_http_04": {
"class": "Tenant",
"A1": {
"class": "Application",
"service": {
"class": "Service_HTTP",
"virtualAddresses": [
"10.0.9.10"
],
"pool": "gce_pool"
},
"gce_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [{
"servicePort": 80,
"serverAddresses": [
"192.0.7.10",
"192.0.7.11"
]
}]
}
},
"A2": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.9.20"
],
"pool": "web_pool",
"serverTLS": "webtls"
},
"web_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [{
"servicePort": 80,
"serverAddresses": [
"192.0.9.10",
"192.0.9.11"
]
}]
},
"webtls": {
"class": "TLS_Server",
"certificates": [{
"certificate": "webcert"
}]
},
"webcert": {
"class": "Certificate",
"remark": "in practice we recommend using a passphrase",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVHPNrGWrjWyZvckQxFYWO59FRFjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAJeJ9SEckEwPhkXOm+IuqfbUS/RcziifBCTmVyE+Fa/j9pKSYTgiEBNdbJeBEa+gPMlQtbV7Y2dy8TKx/8axVBHiXC5geDML7caxOrAyHYBpnx690xJTh5OIORBBM/a/NvaR+P3CoVebr/NPRh9oRNxnntnqvqD7SW0U3ZPe3tJc\n-----END CERTIFICATE-----",
"chainCA": "-----BEGIN CERTIFICATE-----\nMIID9TCCAt2gAwIBAgIJALxQA/NW2b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EN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
}
Using a client and server TLS profile in the same declaration¶
This example shows how you can use both a client and server TLS (SSL) profile in your declarations. See the Schema Reference for usage options and information. See the FAQ for information on why BIG-IP AS3 and the BIG-IP use different naming conventions for Client and Server TLS.
Note
The example declaration has been updated with the BIG-IP AS3 3.24 release to include a chainCA (a bundle of one or more CA certificates in trust-chain from root CA to certificate).
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_cert_05.
- A virtual server named service.
- A client TLS profile named pTlsClient_Local with a certificate and key.
- A server TLS profile named pTlsServer_Local with a certificate and key.
{
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "TEST_Service_HTTPS",
"Sample_cert_06": {
"class": "Tenant",
"TEST_Service_Https_MultiAddr_Local": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.1"
],
"virtualPort": 443,
"clientTLS": "pTlsClient_Local",
"serverTLS": "pTlsServer_Local"
},
"pTlsClient_Local": {
"class": "TLS_Client",
"label": "simplest decl requires just cert",
"clientCertificate": "tlsclient_local_cert"
},
"tlsclient_local_cert": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcG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",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nProc-Type: 4,ENCRYPTED\nDEK-Info: AES-256-CBC,D8FFCE6B255601587CB54EC29B737D31\n\nkv4Fc3Jn0Ujkj0yRjt+gQQfBLSNF2aRLUENXnlr7Xpzqu0Ahr3jS1bAAnd8IWnsR\nyILqVmKsYF2DoHh0tWiEAQ7/y/fe5DTFhK7N4Wml6kp2yVMkP6KC4ssyYPw27kjK\nDBwBZ5O8Ioej08A5sgsLCmglbmtSPHJUn14pQnMTmLOpEtOsu6S+2ibPgSNpdg0b\nCAJNG/KHe+Vkx59qNDyDeKb7FZOlsX30+y67zUq9GQqJEDuysPJ2BUNP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
},
"pTlsServer_Local": {
"class": "TLS_Server",
"label": "simplest decl requires just cert",
"certificates": [
{
"certificate": "tlsserver_local_cert"
}
]
},
"tlsserver_local_cert": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVHPNrGWrjWyZvckQxFYWO59FRFjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAJeJ9SEckEwPhkXOm+IuqfbUS/RcziifBCTmVyE+Fa/j9pKSYTgiEBNdbJeBEa+gPMlQtbV7Y2dy8TKx/8axVBHiXC5geDML7caxOrAyHYBpnx690xJTh5OIORBBM/a/NvaR+P3CoVebr/NPRh9oRNxnntnqvqD7SW0U3ZPe3tJc\n-----END CERTIFICATE-----",
"chainCA": "-----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m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
Using Client Certificate Constrained Delegation (C3D) features in a declaration¶
This example shows how you can use Client Certificate Constrained Delegation (C3D) in a declaration. C3D is used to support complete end-to-end encryption when interception of SSL traffic in a reverse proxy environment is required and when client certificates are used for mutual authentication. See the C3D documentation and Schema Reference for usage options and information.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_C3D.
- An virtual server named appC3D.
- A server TLS profile (which creates a BIG-IP Client SSL profile) named webtls that uses matchToSNI and multiple certificates, and C3D features enabled.
- A client TLS profile (which creates a BIG-IP Server SSL profile) named clienttls with C3D features enabled.
{
"class": "ADC",
"schemaVersion": "3.0.0",
"id": "TEST_Service_HTTPS",
"Sample_cert_06": {
"class": "Tenant",
"TEST_Service_Https_MultiAddr_Local": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.1"
],
"virtualPort": 443,
"clientTLS": "pTlsClient_Local",
"serverTLS": "pTlsServer_Local"
},
"pTlsClient_Local": {
"class": "TLS_Client",
"label": "simplest decl requires just cert",
"clientCertificate": "tlsclient_local_cert"
},
"tlsclient_local_cert": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZ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Mvk6uRFzh+V5L2UnhldNy5wQYMXRDz6SU3LdTJ2OA\n-----END CERTIFICATE-----",
"privateKey": "-----BEGIN RSA PRIVATE KEY-----\nProc-Type: 4,ENCRYPTED\nDEK-Info: AES-256-CBC,D8FFCE6B255601587CB54EC29B737D31\n\nkv4Fc3Jn0Ujkj0yRjt+gQQfBLSNF2aRLUENXnlr7Xpzqu0Ahr3jS1bAAnd8IWnsR\nyILqVmKsYF2DoHh0tWiEAQ7/y/fe5DTFhK7N4Wml6kp2yVMkP6KC4ssyYPw27kjK\nDBwBZ5O8Ioej08A5sgsLCmglbmtSPHJUn14pQnMTmLOpEtOsu6S+2ibPgSNpdg0b\nCAJNG/KHe+Vkx59qNDyDeKb7FZOlsX30+y67zUq9GQqJEDuysPJ2BUNP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
},
"pTlsServer_Local": {
"class": "TLS_Server",
"label": "simplest decl requires just cert",
"certificates": [
{
"certificate": "tlsserver_local_cert"
}
]
},
"tlsserver_local_cert": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVHPNrGWrjWyZvckQxFYWO59FRFjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAJeJ9SEckEwPhkXOm+IuqfbUS/RcziifBCTmVyE+Fa/j9pKSYTgiEBNdbJeBEa+gPMlQtbV7Y2dy8TKx/8axVBHiXC5geDML7caxOrAyHYBpnx690xJTh5OIORBBM/a/NvaR+P3CoVebr/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S\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
Securing client and server side LDAP traffic¶
This example shows how you can use STARTTLS encryption in a declaration to secure your LDAP traffic. With AS3, you use the ldapStartTLS option to activate the STARTTLS communication protocol that allows or requires STARTTLS encryption. The STARTTLS protocol effectively upgrades a plain-text connection to an encrypted connection on the same port (port 389), instead of using a separate port for encrypted communication. For detailed information, see the Securing LDAP Traffic chapter of the SSL Administration guide.
The ldapStartTLS property only accepts none, allow (allows STARTTLS but doesn’t require it), and require. See the STARTTLS property in TLS_Client in the Schema Reference and the section following that, TLS_Server.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named TLS_ldap.
- A virtual server named ldapVip.
- A server TLS profile (which creates a BIG-IP Client SSL profile) named tlsServer that requires STARTTLS (a server LDAP profile is also created with the STARTTLS setting) and a certificate and key.
- A client TLS profile (which creates a BIG-IP Server SSL profile) named tlsClient that allows STARTTLS (a client LDAP profile is also created with the STARTTLS setting).
{
"class": "ADC",
"schemaVersion": "3.10.0",
"id": "TLS_Client",
"TLS_ldap": {
"class": "Tenant",
"Application": {
"class": "Application",
"ldapVip": {
"class": "Service_UDP",
"virtualAddresses": [
"10.0.1.186"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsClient": {
"class": "TLS_Client",
"ldapStartTLS": "allow"
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "tlsservercert"
}
],
"ldapStartTLS": "require"
},
"tlsservercert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": "-----BEGIN CERTIFICATE-----\nMIID7TCCAtWgAwIBAgIJAJH4sMVzl1dMMA0GCSqGSIb3DQEBCwUAMIGMMQswCQYDVQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTELMAkGA1UECgwCRjUxDTALBgNVBAsMBFRlc3QxEzARBgNVBAMMCnRscy1zZXJ2ZXIxJTAjBgkqhkiG9w0BCQEWFnNvbWVib2R5QHNvbWV3aGVyZS5jb20wHhcNMTgwMjI4MTkwNzMyWhcNMjgwMjI2MTkwNzMyWjCBjDELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxCzAJBgNVBAoMAkY1MQ0wCwYDVQQLDARUZXN0MRMwEQYDVQQDDAp0bHMtc2VydmVyMSUwIwYJKoZIhvcNAQkBFhZzb21lYm9keUBzb21ld2hlcmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwEMNPATg7Vz3jqInIVf2jnOi/9/HYIr8xZYgU0YHHFEiquQ6nYfX4mwezZ6zo9GJom7gHiQ3FNy3fN+RatatZmBmuyvJ+z/uZ6pbKmsuJLPLT89olO9JxMtb4a83oHDz3f6rcc2j8KwTr4lUDc452jLF4ZQ55O17s2tYMg4XW2G5DqUGzp1UKiClaDvpN23ZVOlnqDVpIlnVvJ1mz12AzFPny8xD1lhILv78yMltimdaWhyCLcFom0DbloRvYmowjGLHqLTAZ40jI3YUdw39LEqTXgfDF3DnOgZCIdRpouD9cVZBoQroXpVVfWG7sfzKLqWaAEHhjbhdK5l/p3mT7wIDAQABo1AwTjAdBgNVHQ4EFgQUBlCKIZ0+9DQ4ylW86qsyXoW8KjkwHwYDVR0jBBgwFoAUBlCKIZ0+9DQ4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MJ8Ko3crxJhnIO91BtCugkgS+U+pTEnvdAebE4pd7J5e6qqEyCu9F3DC5R6hH+K8bAj76VGwjxOr9a90o/js92HoCVAlQMHnW06Uk2RdIRmQKBgQD0uQPlA2PLBysWA+IQvd8oBfZuXWQjUZPBU9MK5k7bfuRbNeCA2kbTt1MVf15lv7vcwrwAbYo+Ur+L9CVL3lA8d/lQkz51r1ISChTPUiAMyU+CDDnXjQ1Gik/nC399AeluxS62Tur8hGPAb4rkVEyU60hPFVZTjmv13n81EjUoNwKBgQDJHyiPIgbwI+OoZYMUcGQrsr+yp1MdJrjpuFloc7+sdUpsvelyc146h3+TSAlhDce2BMH68kMUWUYHxHIooQjtDMu9S9b8VAF52F3E9osyjMzsywTri3hgBPy69j/Kr623gbZpbm6lYmdxRp/FKZyWtAbPts45GH1GPdv+9fUmCQKBgQCX7CfDy1fvWXLhBuYXuJfJs/HpT+bzmhgdA5nXgWRhFSRUj1zhASDJHFzi0qBakC3i/a1Soq4YxKwPCTECKXAsKdrHr7Etw/oyIroKfpRQ+8R1GnvqGbGtIf46k8PAaihtUNIP8Wwl+VYnx9c0qjSkmm/YUIm384mIKGlWHAiN/wKBgDV5bF5KLNASqsguXWDE1U1tFF0a8hVRI185HcSQ6gifku9Au14r4ITtW/U79QpyEISL1Uu0uDMj3WPZToUQ8/+bJFyrWnjymQXdimkBKFeDakUXYbKC/bmB+fR33tQ0S5r8CRUVQKQGevx6S6avfqvvJ9R4hXJW2ZAgiGrM2KaJAoGAPXuy4KHRmeeBZj8AT/shQ0VrDWIMNYDrhx0T6q9hVMahBS0SJaKDlQn6cSF7TX5N9PFAbwzcrvRKKfNjQVSZpQdR4l42f+N/5q0c1wihf43k9FgeYQ8jHGJ05uJnh3nj/O57FKgjlZ4FZVQdR8ieHN+rT4sHWj36a/FLHa6p1oo=\n-----END PRIVATE KEY-----"
}
}
}
}
Using OCSP Certificate Validation in a declaration¶
This example shows how you can define an OCSP Certificate Validator. See the Certificate_Validator_OCSP class in the Schema Reference. The DNS resolver referenced in the Certificate_Validator_OCSP class must already exist on the BIG-IP device.
- This example does not include real certificates, so if you post the following declaration, you will receive an invalid certificate error. Replace the values of certificate and privateKey with your own certificates.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named TEST_Cert_Validator_OCSP.
- A Certificate Validator OCSP object named testCertOcsp that includes a DNS resolver (which must already exist on the target BIG-IP), the signingHashAlgorithm set to sha256 and a reference to the signing certificate.
- A certificate named testCert which includes a certificate and key.
{
"class": "ADC",
"schemaVersion": "3.11.0",
"id": "Certificate_Validator_OCSP",
"TEST_Cert_Validator_OCSP": {
"class": "Tenant",
"Application": {
"class": "Application",
"testCertOcsp": {
"class": "Certificate_Validator_OCSP",
"dnsResolver": {
"bigip": "/Common/10.1.1.10"
},
"timeout": 8,
"signingHashAlgorithm": "sha256",
"signingCertificate": {
"use": "testCert"
}
},
"testCert": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",
"privateKey": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0",
"ignoreChanges": true
}
}
}
},
"updateMode": "selective"
}
Using the staplerOCSP parameter in a certificate¶
This example shows in detail how you can use the staplerOCSP parameter in a certificate as a part of a declaration. OCSP stapling is a standard for checking the revocation status of X.509 digital certificates. See the staplerOCSP property in Certificate class and Certificate_Validator_OCSP class in the Schema Reference.
Important notes about this declaration:
- In the certificate you are referencing in TLS_Server, staplerOCSP must be set on the certificate, as shown in this declaration.
- For a certificate to be able to use staplerOCSP, it cannot be a self-signed certificate.
- In this example, the issuer certificate already exists on the BIG-IP device (you can also use a pointer).
- The DNS resolver referenced in the Certificate_Validator_OCSP class must already exist on the BIG-IP device.
- This example does not include a real certificate, so if you post the following declaration, you will receive an invalid certificate error. Replace the value of certificate with your own certificate.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named TLS_Server_OCSP.
- A server TLS profile (which creates a BIG-IP Client SSL profile) named testItem, with staplerOCSPEnabled set to true, and a reference to the certificate.
- A certificate named cert which includes references to the certificate validator OCSP object and an issuer certificate that already exists on our BIG-IP system.
- A Certificate Validator OCSP object named testOcsp that includes a DNS resolver (which must already exist on the target BIG-IP) and a responder URL (which specifies the absolute URL that overrides the OCSP responder URL obtained from the certificate’s AIA extension(s)).
{
"class": "ADC",
"schemaVersion": "3.11.0",
"id": "TLS_Server",
"TLS_Server_OCSP": {
"class": "Tenant",
"Application": {
"class": "Application",
"testItem": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"staplerOCSPEnabled": true
},
"cert": {
"class": "Certificate",
"remark": "replace these with real certificates",
"certificate": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",
"staplerOCSP": {
"use": "testOcsp"
},
"issuerCertificate": {
"bigip": "/Common/issuer.crt"
}
},
"testOcsp": {
"class": "Certificate_Validator_OCSP",
"dnsResolver": {
"bigip": "/Common/198.168.111.22"
},
"timeout": 250,
"responderUrl": "http://oscp.test.com"
}
}
}
}
Ignoring validation of certificates when retrieving URI data¶
This example shows how BIG-IP AS3 can ignore the verification of TLS/SSL certificates when retrieving data from a URI, using the new skipCertificateCheck property set to true (the default is false). This prevents BIG-IP AS3 from returning errors when attempting to validate the certificate returned by the server.
See Resource_URL in the Schema Reference for more information and usage.
Warning
Ignoring certificate validation is insecure and should not be used in production environments; it should be used for test purposes only.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named TEST_Certificate.
- A WAF Policy named waf_policy_example which is retrieved from a URL, with skipCertificateCheck set to true so BIG-IP AS3 does not attempt to validate the certificate returned by the server.
{
"class": "ADC",
"schemaVersion": "3.16.0",
"id": "WAF_Policy",
"TEST_WAF_Policy": {
"class": "Tenant",
"Application": {
"class": "Application",
"waf_policy_example": {
"class": "WAF_Policy",
"url": {
"url": "https://mycompany/asm_policy/my_waf.xml",
"skipCertificateCheck": true
}
}
}
}
}
Using TLS 1.3 and Cipher rules and groups in a declaration¶
This example shows how you can use cipher rules and cipher groups to define cipher strings. With cipher rules and groups, you instruct the BIG-IP system which cipher suites to include and exclude, and the system builds the cipher string for you.
It also shows how to enable TLS 1.3 support in a declaration when using TMOS 14.1.0.1 and later. See BIG-IP support for TLS 1.3 for more information, and TLS_Server and TLS_Client in the Schema Reference for usage.
Important
If you are using TLS 1.3, you MUST include a cipher group. However, using cipher groups and rules does not require TLS 1.3.
See Configuring a Custom Cipher String for SSL Negotiation in the BIG-IP documentation for more information Cipher rules and groups (or this AskF5 article for v14 and later). See Cipher_Rule and Cipher_Group in the Schema Reference for usage options.
Note
If you are using a TLS_Client or TLS_Server class to reference a cipher group, you must not use the ciphers property: ciphers and cipherGroup are mutually exclusive in these classes. See TLS_Client and TLS_Server in the schema reference for usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named SampleCipherGroup.
- A server TLS profile (which creates a BIG-IP Client SSL profile) named webtls, with a reference to the certificate and to the cipher group. It also enables TLS 1.3.
- A Cipher Group named myCipherGroup, which specifies which cipher rules to allow, exclude, and require.
- Two Cipher rules named customCipherRule1 and customCipherRule2 which are referenced in the Cipher Group.
{
"class": "ADC",
"schemaVersion": "3.17.0",
"SampleCipherGroup": {
"class": "Tenant",
"SampleApp": {
"class": "Application",
"webtls": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "webcert"
}
],
"cipherGroup": {
"use": "/SampleCipherGroup/SampleApp/myCipherGroup"
},
"tls1_3Enabled": true
},
"myCipherGroup": {
"class": "Cipher_Group",
"allowCipherRules": [
{
"bigip": "/Common/f5-default"
},
{
"bigip": "/Common/f5-secure"
}
],
"excludeCipherRules": [
{
"use": "/SampleCipherGroup/SampleApp/customCipherRule1"
}
],
"requireCipherRules": [
{
"use": "/SampleCipherGroup/SampleApp/customCipherRule2"
}
],
"order": "strength"
},
"customCipherRule1": {
"class": "Cipher_Rule",
"cipherSuites": [
"RSA"
]
},
"customCipherRule2": {
"class": "Cipher_Rule",
"remark": "The description",
"cipherSuites": [
"ECDHE",
"ECDHE_ECDSA",
"!SSLV3",
"!RC4",
"!EXP",
"!DES",
"!3DES"
],
"namedGroups": [
"P256",
"P384"
],
"signatureAlgorithms": [
"DSA-SHA256",
"DSA-SHA512",
"ECDSA-SHA384"
]
},
"webcert": {
"class": "Certificate",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Referencing multiple SSL profiles on a single virtual service¶
This example shows how you can reference multiple client and server SSL (TLS) profiles (that already exist on the BIG-IP) on a single virtual service. This allows for flexibility in implementing different authentication types in a single virtual server.
IMPORTANT: When using multiple SSL profiles, you MUST adhere to the following rules:
- The SSL profiles must exist on the BIG-IP device.
- One of the existing client/server SSL profiles must be configured as the SNI default (the Default SSL Profile for SNI check box in the BIG-IP Configuration utility).
- When using multiple existing client SSL profiles (serverTLS in AS3), you must set the server-name (Server Name in the BIG-IP Configuration utility) field, and it must be different in each profile.
To use multiple SSL profiles, you simply create an array of existing SSL profiles referenced with the bigip pointer, as shown in the following example.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_HTTPS.
- An Application named MyHttps.
- A virtual server named service that includes an array of Client and Server SSL profiles.
{
"class": "ADC",
"schemaVersion": "3.18.0",
"Sample_HTTPS": {
"class": "Tenant",
"MyHttps": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"allowVlans": [
{
"bigip": "/Common/internal"
}
],
"layer4": "tcp",
"snat": "none",
"lastHop": "disable",
"translateServerAddress": false,
"translateServerPort": false,
"virtualAddresses": [
"192.0.2.1"
],
"virtualPort": 8080,
"clientTLS": [
{
"bigip": "/Common/serverssl1"
},
{
"bigip": "/Common/serverssl2"
}
],
"serverTLS": [
{
"bigip": "/Common/clientssl1"
},
{
"bigip": "/Common/clientssl2"
}
]
}
}
}
}
Configuring additional TLS options on a virtual¶
This example extends the capability introduced in #13 to include enabling or disabling additional TLS version options.
See TLS_Server and TLS_Client in the Schema Reference for usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named TEST_TLS_Client.
- An Application named TLS_App.
- A virtual server named test.item-foo that includes specific versions of TLS being enabled or disabled.
{
"class": "AS3",
"persist": false,
"declaration": {
"class": "ADC",
"schemaVersion": "3.19.0",
"id": "TLS_Client",
"TEST_TLS_Client": {
"class": "Tenant",
"TLS_App": {
"class": "Application",
"test.item-foo": {
"class": "TLS_Client",
"insertEmptyFragmentsEnabled": true,
"singleUseDhEnabled": true,
"tls1_3Enabled": false,
"tls1_2Enabled": false,
"tls1_1Enabled": true,
"tls1_0Enabled": false,
"cipherGroup": {
"bigip": "/Common/f5-aes"
},
"clientCertificate": "defaultCert"
},
"defaultCert": {
"class": "Certificate",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
}
Configuring explicit forward proxy settings in SSL (TLS) profiles¶
This example shows how you can configure explicit proxy settings in Client and Server SSL profiles, specifically enabling the SSL forward proxy and whether or not the BIG-IP should cache certificates by IP address and port number.
SSL forward proxy allows you to encrypt all traffic between a client and the BIG-IP system by using one certificate, and to encrypt all traffic between the BIG-IP system and the server by using a different certificate. This feature is well documented in the BIG-IP documentation, see Implementing SSL Forward Proxy.
See TLS_Server and TLS_Client in the Schema Reference for BIG-IP AS3 usage.
Note
The example declaration has been updated with the BIG-IP AS3 3.24 release to include a chainCA (a bundle of one or more CA certificates in trust-chain from root CA to certificate).
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) with both a certificate and proxy certificate, and certificate caching and forward proxy enabled.
- A Server SSL profile (TLS_Client in AS3) with forward proxy and forward proxy bypass enabled.
{
"class": "ADC",
"schemaVersion": "3.19.0",
"id": "TLS_Server_Forward_Proxy",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.186"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert",
"proxyCertificate": "proxyCert"
}
],
"cacheCertificateEnabled": true,
"forwardProxyEnabled": true
},
"tlsClient": {
"class": "TLS_Client",
"forwardProxyEnabled": true
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVHPNrGWrjWyZvckQxFYWO59FRFjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAJeJ9SEckEwPhkXOm+IuqfbUS/RcziifBC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KhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
},
"proxyCert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6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NP0IJXAjst\nFIt1qNoZew+5KDYs7u/lPxcMGTirUhgI84Jy4WcDvSOsP/tKlxj04TbIE3epmSKy\n+TihHkwY7ngIGtcm3Sfqk5jz2RXoj1/Ac3SW8kVTYaOUogBhn7zAq4Wju6Et4hQG\nRGapsJp1aCeZ/a4RCDTxspcKoMaRa97/URQb0hBRGx3DGUhzpmX9zl7JI2Xa5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
Configuring a cache timeout in SSL (TLS) profiles¶
This example shows how you can configure a cache timeout in Client and Server SSL profiles (TLS_Client and TLS_Server). This setting specifies the timeout value (in seconds) of the SSL session cache entries.
See TLS_Server and TLS_Client in the Schema Reference for BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has a cache timeout value of 1234.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has a cache timeout value of 4321.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.21.0",
"id": "TLS_Cache_Timeouts",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.14"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"cacheTimeout": 1234
},
"tlsClient": {
"class": "TLS_Client",
"clientCertificate": "cert",
"cacheTimeout": 4321
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Configuring an alert timeout in SSL (TLS) profiles¶
This example shows how you can configure an alert timeout in Client and Server SSL profiles (TLS_Client and TLS_Server). The SSL alert timeout specifies the duration that the system tries to close an SSL connection by transmitting an alert or initiating an unclean shutdown before resetting the connection.
The default is indefinite. You can also specify immediate or a number of seconds. See TLS_Server and TLS_Client in the Schema Reference for BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has an alert timeout value of 1234.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has an alert timeout value of indefinite.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.23.0",
"id": "TLS_Alert_Timeouts",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.14"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"alertTimeout": 1234
},
"tlsClient": {
"class": "TLS_Client",
"clientCertificate": "cert",
"alertTimeout": "indefinite"
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Configuring a handshake timeout in SSL (TLS) profiles¶
This example shows how you can configure a handshake timeout in Client and Server SSL profiles (TLS_Client and TLS_Server). This setting specifies the timeout value (in seconds) of the SSL session.
See TLS_Server and TLS_Client in Appendix A: Schema Reference for BIG-IP AS3.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has handshake timeout value of 100.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has handshake timeout value of 100 (time in seconds).
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.49.0",
"id": "TLS_Server",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.0"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"handshakeTimeout": 100
},
"tlsClient": {
"class": "TLS_Client",
"handshakeTimeout": 100
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Configuring the renegotiation property on TLS classes¶
This example shows how you can enable or disable renegotiation in Client and Server SSL profiles (TLS_Client and TLS_Server) using the renegotiationEnabled property. Disabling renegotiation is necessary when using HTTP/2, which breaks both renegotiation and post-handshake authentication because of pipelining.
See TLS_Server and TLS_Client in the Schema Reference for BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has renegotiationEnabled set to true, enabling renegotiation.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has renegotiationEnabled set to false, disabling renegotiation.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.25.0",
"id": "TLS_Renegotiation",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.14"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"renegotiationEnabled": true
},
"tlsClient": {
"class": "TLS_Client",
"clientCertificate": "cert",
"renegotiationEnabled": false
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Configuring the retain certificate property on TLS classes¶
This example shows how you can enable or disable retaining certificates in Client and Server SSL profiles (TLS_Client and TLS_Server) using the retainCertificateEnabled property. When disabled, the server certificate is not retained in SSL session.
See TLS_Server and TLS_Client in the Schema Reference for BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has retainCertificateEnabled set to true, retaining the server certificate in the session.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has retainCertificateEnabled set to false, which does not retain the server certificate in the session.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.25.0",
"id": "TLS_Retain_Certificate",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.14"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"retainCertificateEnabled": true
},
"tlsClient": {
"class": "TLS_Client",
"clientCertificate": "cert",
"retainCertificateEnabled": false
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Excluding host names from the SSL Forward Proxy Bypass¶
This example shows how you can add host names to an allow list in a TLS_Server object so they are excluded from the SSL Forward Proxy Bypass.
To use this feature, you add the new forwardProxyBypassAllowlist property to the TLS_Server class (which creates a Client SSL profile on the BIG-IP). The forwardProxyBypassAllowlist references a data group with a list of host names. This data group can either be defined in the declaration as shown in the example, or reference an existing data group on the BIG-IP using the bigip pointer.
Note
To use forwardProxyBypassAllowlist, both the forwardProxyEnabled and forwardProxyBypassEnabled properties must be set to true in the TLS_Server class.
See TLS_Server in the Schema Reference for BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named TEST_TLS_Server_Tenant.
- An Application named AS3_App.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, has forwardProxyEnabled and forwardProxyBypassEnabled set to true, and a reference to the forward proxy allow list.
- A Data Group named dataGroupHostnames which contains two host names that are excluded from the SSL forward proxy bypass.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.28.0",
"TEST_TLS_Server_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"TEST_TLS_Server": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "webcert1",
"proxyCertificate": "proxyCert"
}
],
"forwardProxyEnabled": true,
"forwardProxyBypassEnabled": true,
"forwardProxyBypassAllowlist": {
"use": "dataGroupHostnames"
}
},
"dataGroupHostnames": {
"class": "Data_Group",
"storageType": "internal",
"name": "internalHostnames",
"keyDataType": "string",
"records": [
{
"key": "exampleKey",
"value": "example.home.com"
},
{
"key": "testKey",
"value": "example.otherHome.edu"
}
]
},
"webcert1": {
"class": "Certificate",
"certificate": "-----BEGIN CERTIFICATE-----\nMIID7TCCAtWgAwIBAgIJAJH4sMVzl1dMMA0GCSqGSIb3DQEBCwUAMIGMMQsw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wrwAbYo+Ur+L9CVL3lA8d/lQkz51r1ISChTPUiAMyU+CDDnXjQ1Gik/nC399AeluxS62Tur8hGPAb4rkVEyU60hPFVZTjmv13n81EjUoNwKBgQDJHyiPIgbwI+OoZYMUcGQrsr+yp1MdJrjpuFloc7+sdUpsvelyc146h3+TSAlhDce2BMH68kMUWUYHxHIooQjtDMu9S9b8VAF52F3E9osyjMzsywTri3hgBPy69j/Kr623gbZpbm6lYmdxRp/FKZyWtAbPts45GH1GPdv+9fUmCQKBgQCX7CfDy1fvWXLhBuYXuJfJs/HpT+bzmhgdA5nXgWRhFSRUj1zhASDJHFzi0qBakC3i/a1Soq4YxKwPCTECKXAsKdrHr7Etw/oyIroKfpRQ+8R1GnvqGbGtIf46k8PAaihtUNIP8Wwl+VYnx9c0qjSkmm/YUIm384mIKGlWHAiN/wKBgDV5bF5KLNASqsguXWDE1U1tFF0a8hVRI185HcSQ6gifku9Au14r4ITtW/U79QpyEISL1Uu0uDMj3WPZToUQ8/+bJFyrWnjymQXdimkBKFeDakUXYbKC/bmB+fR33tQ0S5r8CRUVQKQGevx6S6avfqvvJ9R4hXJW2ZAgiGrM2KaJAoGAPXuy4KHRmeeBZj8AT/shQ0VrDWIMNYDrhx0T6q9hVMahBS0SJaKDlQn6cSF7TX5N9PFAbwzcrvRKKfNjQVSZpQdR4l42f+N/5q0c1wihf43k9FgeYQ8jHGJ05uJnh3nj/O57FKgjlZ4FZVQdR8ieHN+rT4sHWj36a/FLHa6p1oo=\n-----END PRIVATE KEY-----"
},
"proxyCert": {
"class": "Certificate",
"certificate": "-----BEGIN CERTIFICATE-----\nMIIDejCCAmKgAwIBAgIEEScJETANBgkqhkiG9w0BAQsFADB/MQswCQYDVQQGEwJV\nUzELMAkGA1UECBMCV0ExEDAOBgNVBAcTB1NlYXR0bGUxCzAJBgNVBAoTAkY1MREw\nDwYDVQQLEwhEZXYvVGVzdDERMA8GA1UEAxMIYzNkLnRlc3QxHjAcBgkqhkiG9w0B\nCQEWD2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TXFyz9UlXRZk5hS5Me\n9LngAbQxibB/IWI3FSmACUPd5Iev7ma9X9fSRKhbuHdeD7tsHofiZsl0caZupack\nVGc7DSIoz0s+gtYbNSOzfYL3h8oKstrCVkX8FixP4osjWuNrj2pyhcatyiMv2k2I\nZGctd2vTFK0H0nU8EOodrhLU/bv2g4aBWFbpHgsQPIz7zvuLYqfiYjhBp8f0KCrR\nbDuGwoDS1OL2hGJ0I4KwYDDOu2Fkezo2J1sGDLVbF9H+FgHgzY5V9CmsL7SrG34B\nq16deuwutnqo3KGeK2kGkhYhbvgBbNsOHkw6WveQga11mVlTCqzubceYl2z3PkR7\nVEhcFufm94uED+tb/xJUBtNCp4XB9UvGaPaNbwG9SAPxn/6u4rc5C3QcRwuoSIjv\nRpdLsS6w067dadQ2ejblbLe5OURjNkxoWSIJQFT7dwswPWKS64GI6YgUKF/H0oK7\nY+jF1IAI2p3wRkZLiBjUWTi9icCxLa0AJh14JFT1wds8CnvG7227pOPpDVZWd2eR\nbVHiw5qnVm6/Ib9CFgMsDn1YJJhE3I3WVkmy1mbNnoBn4Be2LUn0YltOhLpfsAlM\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "YXMzYXMz",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0",
"ignoreChanges": true
}
}
}
}
}
Using certificate names as the SSL profile name¶
This example shows how you can configure BIG-IP AS3 to name SSL profiles using the name of the certificate. This can make it easier to identify SSL profiles from a large list.
To use this feature, you add the new namingScheme property set to certificate to the TLS_Server class (which creates a Client SSL profile on the BIG-IP). BIG-IP AS3 uses the name of the certificate as the name of the SSL profile, and ignores the name for the TLS_Server you provide in the declaration. The default is numbered which uses the name for the profile specified in the declaration.
See TLS_Server in the Schema Reference for BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client SSL profile.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has namingScheme set to certificate. This means on the BIG-IP the Client SSL profile is named application1.certificate
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.28.0",
"id": "TLS_Server_Naming_Scheme",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.14"
],
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "application1.certificate"
}
],
"namingScheme": "certificate"
},
"application1.certificate": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Disabling the mode for TLS Server certificates¶
This example shows how you can use the new enabled property to TLS_Server certificates, which can be used to disable the mode of a Client SSL profile on the BIG-IP system. The Client SSL profile mode enables or disables SSL processing, regardless of whether the SSL profile is attached to a virtual server. Setting enabled to false in a declaration causes BIG-IP AS3 to set the mode to disabled on the Client SSL profile.
This feature is commonly used with the SNI default profile, so TLS handshakes with bad SNI values are dropped for security. BIG-IP AS3 automatically enables the Client SSL profile (TLS_Server in AS3) created from the first item of the certificates array to be a default SSL profile for SNI.
See TLS_Server in the Schema Reference for BIG-IP AS3 usage.
See Overview of Client SSL profiles for more information on Client SSL profiles.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named Sample_cert_07.
- An Application named A1.
- A virtual server named service that includes a reference to the Client SSL profile (TLS_Server in AS3).
- Two certificates which include the cert, chainCA and key.
{
"class": "AS3",
"action": "deploy",
"persist": true,
"declaration": {
"class": "ADC",
"schemaVersion": "3.28.0",
"id": "123abc",
"label": "Disable TLS_Server certificates example",
"remark": "Disabling a TLS_Server certificate",
"Sample_cert_07": {
"class": "Tenant",
"A1": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.19"
],
"serverTLS": "webtls"
},
"webtls": {
"class": "TLS_Server",
"certificates": [{
"enabled": false,
"certificate": "webcert1"
},
{
"certificate": "webcert2"
}]
},
"webcert1": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVHPNrGWrjWyZvckQxFYWO59FRFjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAJeJ9SEckEwPhkXOm+IuqfbUS/RcziifBCTmVyE+Fa/j9pKSYTgiEBNdbJeBEa+gPMlQtbV7Y2dy8TKx/8axVBHiXC5geDML7caxOrAyHYBpnx690xJTh5OIORBBM/a/NvaR+P3CoVebr/NPRh9oRNxnntnqvqD7SW0U3ZPe3tJc\n-----END CERTIFICATE-----",
"chainCA": "-----BEGIN CERTIFICATE-----\nMIID9TCCAt2gAwIBAgI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CfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
},
"webcert2": {
"class": "Certificate",
"remark": "replace these with real certificates and keys",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVHPNrGWrjWyZvckQxFYWO59FRFjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4GBAJeJ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a5D3R\nmdBXtjLKYJTdIMdd27prBEKhMUpae2rz5Mw4J907wZeBq/wu+zp8LAnecfTe2nGY\nE32x1U7gSEdYOGqnwxsOexb1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
}
Referencing a Chain CA with a ‘use’ pointer¶
This example shows how you to include a use pointer for a Chain CA in order to reuse a chain CA declaration from /Common. A chainCA is a bundle of one or more CA certificates in trust-chain from root CA to certificate.
This feature allows chain_CAs to reference CA_Bundles within the declaration as shown in the example declaration. In the example, the first tenant is storing the CA bundle in /Common/Shared, which allows it to be referenced from the second parition defined in the example.
See Certificate_chainCA in the Schema Reference for BIG-IP AS3 usage.
This declaration defines or creates the following objects on the BIG-IP:
- Partition (tenant) named Common (using the shared application template).
- An Application named Shared using the shared template (necessary for the Common tenant), and includes a CA bundle named ca_example_bundle referenced later in the declaration.
- A virtual server named httpsVirtual that references a client and server TLS profiles, defined later in the declaration.
- Another paritition, named exampleTenant, that includes a certificate named useCert which references the chainCA defined in the first partition, Client and Server SSL profiles which reference the useCert certificate, and a pool with one member.
{
"action": "deploy",
"class": "AS3",
"persist": true,
"declaration": {
"class": "ADC",
"id": "t1a1-0001",
"schemaVersion": "3.30.0",
"Common": {
"class": "Tenant",
"Shared": {
"class": "Application",
"template": "shared",
"ca_example_bundle": {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tE0ZsZGdFv98qi9kcUm17Z0tprEwypODZ1/syt9b1JhD4RgU30qwgeF4kec8UpoG49UkQImRD3AqfsiYSdjZeBpcpEl3n8lkjKGoVY7GB2lMGoWDxv/1A0CSjVTmWgQSFGHoMtzOW1tCr9yGXVEdy691l7PVC1kK5ekwkO8YbSO6hvV/u83KuUiGcIoY1PIzAK301i9YXWUNxybIVfHregoQ11QzjhfdfpOLBTtW1B4QZqZz8qFGIr1remmQK3ljEcct9bWjMLOx2QYMvk6uRFzh+V5L2UnhldNy5wQYMXRDz6SU3LdTJ2OA\n-----END CERTIFICATE-----",
"class": "CA_Bundle"
}
}
},
"exampleTenant": {
"class": "Tenant",
"exampleApp": {
"class": "Application",
"httpsVirtual": {
"class": "Service_HTTPS",
"redirect80": false,
"clientTLS": "tlsClientWithUse",
"serverTLS": "tlsServerWithUse",
"snat": "self",
"pool": "poolPool",
"virtualAddresses": [
"10.20.20.20"
],
"virtualPort": 443
},
"useCert": {
"class": "Certificate",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t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1jKgCa67Nw9TmcMPV8zmH7R9qdvgxAbAtwBl1F9OS\nfcGaC7epf1AjJLtaX7krWmzgASHl28Ynh9lmGMdv+5QYMZvKG0LOg/n3m8uJ6sKy\nIzzvaJswwn0j5P5+czyoV5CvvdCfKnNb+3jUEN8I0PPwjBGKr4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
},
"chainCA": {
"use": "/Common/Shared/ca_example_bundle"
}
},
"tlsClientWithUse": {
"class": "TLS_Client",
"clientCertificate": "useCert"
},
"tlsServerWithUse": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "useCert"
}
]
},
"poolPool": {
"class": "Pool",
"members": [
{
"serverAddresses": [
"10.100.100.200"
],
"servicePort": 8181
}
]
}
}
}
}
}
Disabling SSL on TLS profiles¶
This example shows how you can disable SSL on TLS Client and Server profiles using the sslEnabled and ssl3Enabled properties. These properties enable more granular control over security settings by allowing you to enable or disable SSL or SSL v3 on individual TLS/SSL profiles. The default for both properties is true. Use false if you want to disable SSL or SSLv3.
See TLS_Server and TLS_Client in the Schema Reference for more information and BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has sslEnabled and ssl3Enabled set to true, enabling SSL and SSLv3.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has sslEnabled and ssl3Enabled set to false, disabling SSL and SSL v3.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.33.0",
"id": "TLS_SSL_Protocol",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"1.2.3.4"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"sslEnabled": true,
"ssl3Enabled": true
},
"tlsClient": {
"class": "TLS_Client",
"sslEnabled": false,
"ssl3Enabled": false
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Configuring Client and Server TLS properties¶
This example shows how you can use newly supported TLS_Client and TLS_Server properties in a declaration. While the TLS Client and Server classes have long been supported, the following properties were added in BIG-IP AS3 3.38:
- proxySslEnabled
- proxySslPassthroughEnabled
- secureRenegotiation
- uncleanShutdownEnabled
- dtlsEnabled
- dtls1_2Enabled
- certificateExtensions
- nonSslConnectionsEnabled
See TLS_Server and TLS_Client in the Schema Reference for specific information and BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and uses a number of the newly supported properties.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and uses a number of the newly supported properties.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.38.0",
"id": "TLS_Server",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.0"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"insertEmptyFragmentsEnabled": true,
"proxySslEnabled": true,
"proxySslPassthroughEnabled": true,
"secureRenegotiation": "require-strict",
"uncleanShutdownEnabled": true,
"dtlsEnabled": false,
"dtls1_2Enabled": false,
"certificateExtensions": [
"basic-constraints"
],
"nonSslConnectionsEnabled": false
},
"tlsClient": {
"class": "TLS_Client",
"insertEmptyFragmentsEnabled": true,
"proxySslEnabled": true,
"proxySslPassthroughEnabled": true,
"secureRenegotiation": "require",
"uncleanShutdownEnabled": true,
"dtlsEnabled": false,
"dtls1_2Enabled": false
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Configuring advanced Client and Server TLS properties¶
This example shows how you can use newly supported TLS_Client and TLS_Server properties in a declaration. While the TLS Client and Server classes have long been supported, the following advanced properties were added in BIG-IP AS3 3.41:
- allowDynamicRecordSizing (TLS Server only)
- dataZeroRoundTripTime
- renegotiateMaxRecordDelay (TLS Server only)
- renegotiatePeriod
- renegotiateSize
See TLS_Server and TLS_Client in the Schema Reference for specific information and BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and uses a number of the newly supported properties.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and uses a number of the newly supported properties.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.41.0",
"id": "TLS_Profiles",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.0.1.14"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"renegotiationEnabled": true,
"allowDynamicRecordSizing": true,
"dataZeroRoundTripTime": "enabled-with-anti-replay",
"renegotiateMaxRecordDelay": 100,
"renegotiatePeriod": 100,
"renegotiateSize": 100,
"secureRenegotiation": "require-strict"
},
"tlsClient": {
"class": "TLS_Client",
"clientCertificate": "cert",
"renegotiationEnabled": true,
"dataZeroRoundTripTime": false,
"renegotiatePeriod": 100,
"renegotiateSize": 100,
"secureRenegotiation": "require-strict"
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}
Specifying the SSL signature hash type¶
This example shows how you can use the sslSignHash property in the TLS_Client and TLS_Server classes to specify the SSL signature hash algorithm. Use this property to choose the SSL signature hash algorithm used to sign and verify SSL Server Key Exchange and Certificate Verify messages for the specified SSL profiles. The options are any (default), sha1, sha256, and sha384.
See TLS_Server and TLS_Client in the Schema Reference for specific information and BIG-IP AS3 usage.
This declaration creates the following objects on the BIG-IP:
- Partition (tenant) named AS3_Tenant.
- An Application named AS3_App.
- A virtual server named service that includes the Client and Server SSL profiles.
- A Client SSL profile (TLS_Server in AS3) that references a certificate, and has the sslSignHash set to sha256.
- A Server SSL profile (TLS_Client in AS3) that references a certificate, and has the sslSignHash set to sha256.
- A certificate which includes the cert and key.
{
"class": "ADC",
"schemaVersion": "3.47.0",
"id": "TLS_Server",
"AS3_Tenant": {
"class": "Tenant",
"AS3_App": {
"class": "Application",
"service": {
"class": "Service_HTTPS",
"virtualAddresses": [
"192.0.2.0"
],
"clientTLS": "tlsClient",
"serverTLS": "tlsServer",
"virtualPort": 443
},
"tlsServer": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "cert"
}
],
"sslSignHash": "sha256"
},
"tlsClient": {
"class": "TLS_Client",
"sslSignHash": "sha256"
},
"cert": {
"class": "Certificate",
"remark": "in practice using a passphrase is recommended",
"certificate": {
"bigip": "/Common/default.crt"
},
"privateKey": {
"bigip": "/Common/default.key"
}
}
}
}
}