[Asterisk-code-review] pjsip: Add tests that verify wildcard cert-bearing servers (testsuite[master])
Kevin Harwell
asteriskteam at digium.com
Wed Jun 8 18:34:53 CDT 2022
Kevin Harwell has uploaded this change for review. ( https://gerrit.asterisk.org/c/testsuite/+/18653 )
Change subject: pjsip: Add tests that verify wildcard cert-bearing servers
......................................................................
pjsip: Add tests that verify wildcard cert-bearing servers
This patch adds two new tests that verify the use of wildcard certs
when found in the common name (CN), or subject alt name (SAN). Note,
certificates set to expire in a few thousand years.
Also, made it so SIPp's working directory is <test_dir>/sipp. This
makes is so the certificate files are easily found when using TLS.
ASTERISK-30072
Change-Id: I2d4cf66b642ccf97a6b275e1425c0cbfad5eb0ab
---
M lib/python/asterisk/sipp.py
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/ca.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/extensions.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjproject.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjsip.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/resolver_unbound.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/dns_zones/example.com
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/README.txt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.csr
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.csr
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cacert.pem
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cakey.pem
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/invite_recv.xml
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/test-config.yaml
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/ca.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/extensions.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjproject.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjsip.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/resolver_unbound.conf
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/dns_zones/example.com
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/README.txt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.csr
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.crt
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.csr
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.key
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cacert.pem
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cakey.pem
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/invite_recv.xml
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/test-config.yaml
A tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/tests.yaml
M tests/channels/pjsip/secure_calling/calls/nominal/tests.yaml
45 files changed, 1,017 insertions(+), 2 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/53/18653/1
diff --git a/lib/python/asterisk/sipp.py b/lib/python/asterisk/sipp.py
index 498bf19..41a50c8 100644
--- a/lib/python/asterisk/sipp.py
+++ b/lib/python/asterisk/sipp.py
@@ -646,7 +646,7 @@
sipp_args = [
self.sipp, self.target,
'-sf',
- '%s/sipp/%s' % (self.test_dir, self.scenario['scenario']),
+ '%s' % (self.scenario['scenario']),
'-nostdin',
'-skip_rlimit',
]
@@ -719,7 +719,7 @@
sipp_args[0],
sipp_args,
{"TERM": "vt100", },
- None,
+ "{0}/sipp".format(self.test_dir),
None)
return self._our_exit_deferred
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/ca.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/ca.crt
new file mode 120000
index 0000000..1d16722
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/ca.crt
@@ -0,0 +1 @@
+../../keys/ca.crt
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/extensions.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/extensions.conf
new file mode 100644
index 0000000..ab109a1
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/extensions.conf
@@ -0,0 +1 @@
+[default]
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjproject.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjproject.conf
new file mode 100644
index 0000000..f7b8e9b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjproject.conf
@@ -0,0 +1,10 @@
+[log_mappings]
+type = log_mappings
+asterisk_error = 0,1
+asterisk_warning = 2
+asterisk_verbose = 3
+asterisk_debug = 4,5,6
+
+[startup]
+type = startup
+log_level = 3
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjsip.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjsip.conf
new file mode 100644
index 0000000..1389f8d
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/pjsip.conf
@@ -0,0 +1,24 @@
+[global]
+type=global
+debug=yes
+
+[transport-tls]
+type=transport
+protocol=tls
+bind=127.0.0.1:5061
+method=tlsv1_2
+priv_key_file=<<astetcdir>>/uac.key
+cert_file=<<astetcdir>>/uac.crt
+ca_list_file=<<astetcdir>>/ca.crt
+verify_server=yes
+allow_wildcard_certs=yes
+
+[uas]
+type=aor
+contact=sips:uas.example.com:5062\;transport=tls
+
+[uas]
+type=endpoint
+direct_media=no
+allow=!all,ulaw
+aors=uas
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/resolver_unbound.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/resolver_unbound.conf
new file mode 100644
index 0000000..38ef153
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/resolver_unbound.conf
@@ -0,0 +1,3 @@
+[general]
+nameserver = 127.0.0.1 at 10053
+resolv =
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.crt
new file mode 120000
index 0000000..9ada8f1
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.crt
@@ -0,0 +1 @@
+../../keys/uac.crt
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.key
new file mode 120000
index 0000000..f141b2b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/configs/ast1/uac.key
@@ -0,0 +1 @@
+../../keys/uac.key
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/dns_zones/example.com b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/dns_zones/example.com
new file mode 100644
index 0000000..79a9c6e
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/dns_zones/example.com
@@ -0,0 +1,29 @@
+zone = [
+ SOA(
+ # For whom we are the authority
+ 'example.com',
+
+ # This nameserver's name
+ mname = "ns1.example.com",
+
+ # Mailbox of individual who handles this
+ rname = "root.example.com",
+
+ # Unique serial identifying this SOA data
+ serial = 2003010601,
+
+ # Time interval before zone should be refreshed
+ refresh = "1H",
+
+ # Interval before failed refresh should be retried
+ retry = "1H",
+
+ # Upper limit on time interval before expiry
+ expire = "1H",
+
+ # Minimum TTL
+ minimum = "1H"
+ ),
+
+ A('uas.example.com', '127.0.0.1'),
+]
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/README.txt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/README.txt
new file mode 100644
index 0000000..efda3af
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/README.txt
@@ -0,0 +1,16 @@
+# certs generated using the following commands:
+
+# create CA
+openssl req -x509 -days 999999 -newkey rsa:4096 -nodes -keyout ca.key -out ca.crt
+
+# create server key and signing request
+openssl req -newkey rsa:4096 -nodes -keyout uas.key -out uas.csr -subj="/C=US/CN=*.example.com"
+
+# create server certificate
+openssl x509 -days 999999 -CAkey ca.key -CA ca.crt -in uas.csr -set_serial 01 -req -out uas.crt
+
+# create client key and signing request
+openssl req -newkey rsa:4096 -nodes -keyout uac.key -out uac.csr -subj="/C=US/CN=uac.example.com"
+
+# create server certificate
+openssl x509 -days 999999 -CAkey ca.key -CA ca.crt -in uac.csr -set_serial 01 -req -out uac.crt
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.crt
new file mode 100644
index 0000000..d8e1623
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.crt
@@ -0,0 +1,33 @@
+-----BEGIN CERTIFICATE-----
+MIIFqTCCA5GgAwIBAgIUPbF8KgcAQ7eE5SZCoVRwJjBJz50wDQYJKoZIhvcNAQEL
+BQAwYzELMAkGA1UEBhMCVVMxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM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WTzAfBgNVHSMEGDAWgBTgac3DMlhShY4nmPyWFJTEbHeWTzAPBgNVHRMB
+Af8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4ICAQCeU36NutIrWJtZVsABXj4uXlzn
+6XNAFlSRAP7RvAnYEMpaiD3xI4GV78K27vMvIwEZYszWS0Cfu/JMfr21lJ5Lm1qv
+yhhtsYvFP7rqRUbjHp26LwVGzuAAwl52OyUxyAasNRoSY+pyRbQoo87xn4wlxf2j
+IHmyt06ToNQ+FKsLKgSHH1EgqaH+D/wS8CESNXcd4YHDZQ5EG7sXEwxmJuRMbW+R
+RIsNBaD6eM8a/CWd8nrhJnYDNRippXwQruqSw6/1rzVYSC5tvhGD7ExlB3r3WdqJ
+MO1imnZlrMAKhkqKTRB49YW5rpRqUJc9qzs0QlS4aZac+H0IFADcpPFIxTO32jaf
+j40zn7tRPtH1gtaXfVe/mUSXRYTRhkOILANpNneCtssrIYDbTT2lquIUV9yE15j1
+YwEIxNjKgkbxT7xOtRR8QUQ8MROPk6mvmBT65BhgKc4M1fqnMlERxJEDyAolgzNV
+QY/3JzGch9KSl0qcdIBdxX6yDTeZPutA58zvNcJQJeHqf05r5uuOf/SRQvs6GHOT
+tb8s9VH4G0/ivkShbT9M6q8lrM5qqnlaRYYf84isViIw/aKDkKbxO4CiiOaf7R7B
+zG+Fir5XZJMBcXyWM90xj8ZHVMKPWvz+u9uolkigyXTaBhYU0c2Z2D+KIyoguyYa
+7TmhpJHLNG6/R6TQZg==
+-----END CERTIFICATE-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.key
new file mode 100644
index 0000000..4861a06
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/ca.key
@@ -0,0 +1,52 @@
+-----BEGIN PRIVATE KEY-----
+MIIJQQIBADANBgkqhkiG9w0BAQEFAAS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
++KIlKmq1Cj0jtPyslfjHh8I0R2Ul
+-----END PRIVATE KEY-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.crt
new file mode 100644
index 0000000..8d6d6e8
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.crt
@@ -0,0 +1,29 @@
+-----BEGIN CERTIFICATE-----
+MIIFADCCAugCAQEwDQYJKoZIhvcNAQELBQAwYzELMAkGA1UEBhMCVVMxEzARBgNV
+BAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0
+ZDEcMBoGA1UEAwwTQXN0ZXJpc2sgUHJpdmF0ZSBDQTAgFw0yMjA1MjYyMTE4MjRa
+GA80NzYwMDQyMTIxMTgyNFowJzELMAkGA1UEBhMCVVMxGDAWBgNVBAMMD3VhYy5l
+eGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANIl+uxl
+HWFPaQHWpllg8LWgqDLorNPhc0lgvzklbpwqvSFnyLHEeJwMGt1FwF/sRDzwgVdM
+dfmXaxI8A8z9q0tLedNFPstFPoAzdIdmdYH5xifts4qpkqnT841q0U/fYsOJhz8z
+SsepcR4XPjQP7HLqa4t28iyfo91sFZvLbpe1FJ088HRkkeW3bUOvCO15yAK63f6M
+7bKOt+HoY6J8ztGwsT8GTIH8ypdkYO0mQyA97l5n2z57OmY1HV/30zzYqsfW5JO0
+ZPPmacSHyNBAjVaYhZ7+ezcvHpbTRmWYLQE2BKT7G+GLOLMVHJXhswX+l3gGxv+i
+BJ9si8BJbGS+plNZuEHysgvhPzNyLsuDbBqQ01cRuN7aHqYvqXoCZkdDB8lbzNg1
+cjHZy2F1n4FKOEsgYirHfwJRDbxJc7VuMF/Q36SWU6VbnN41yrEh5pkTqTefR97H
+5cQcMWeV+KHpB34A5M5dHSTTXiTB7cmeKahulN7cpBhvLq5PTRC+EAwo38A4tOed
+TD2Tyvba3apiv2qqtq8pSp9BxOxRTb4TKvDC1MDsb2RzK9YgjrmPrs3+eiZM2IX8
+wWXQJ5nDIe5v9gRk7TXbAPy9dYaYGMeThMbyQw8BVOK3rmE4DwCHgI6EQU1peX2A
+CjtDEDnfmma9C97jf9tDbBpK60JjrpVY7W1TAgMBAAEwDQYJKoZIhvcNAQELBQAD
+ggIBAAmokehtxN6WkeaAFiU+BslN+ZBD99yGC+X4qnhnX2kR8jK50fjX74y14oyh
+FPWBC6iZWlpiaoSXOmyKBPfMd+Bz1g4AtVgag27m96A0onOHLABDMvrOFPqqKzjg
+uM5Yjh3VoyEGBN9KKwytKZI8gsb3/UZJGEBDHyJLX8DlTuV6GbR/9567URi+NOZ0
+da9oh4nVa4m70BNQz4qPev2dYlTIH7ZlrYRWkdx/3zf7bweuGfDIpl9Lt91kkahp
++OyMXv+mAEJ6WMyNCBl+JoplSeX7UftwHM8C3aGwTNG6y5b3LrR2HqyFcr+f18PD
+tB4UaYJu4KGKaWsx+aOd1H/tGPbXqaI79WEHXX9wfx7cBrbjtTruUT89Tu74nRg5
+ftyjRb1/XKMOcAkrHWbIwbbGBXNcELjiRW3Cf9LeWM1formFpidML7u62DxqLLR4
+m0pLr1Uv6CoCLsH29YdZ9Dxi+MtXqNrZRo5IXIeiUZC21qZt2OaZqoljABllU8Rg
+GJ0kWlIY6v3wQTYhHLDViLNk52mKUL9Epn/hXojDlIZIZ4dYXvnXTf1IpRa/xBPw
+msSyJMJ5Z4neS/VmpCKGBz3Oz/UUqz5nhrh8OhZZrTpwph+GWFR6PA8fj3s8sCIs
+2r2K+sW8lrrHIDn92qOEp0GEvPABFAY2IY8cyk2kNKTMtSOd
+-----END CERTIFICATE-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.csr b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.csr
new file mode 100644
index 0000000..963c63b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.csr
@@ -0,0 +1,26 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIEbDCCAlQCAQAwJzELMAkGA1UEBhMCVVMxGDAWBgNVBAMMD3VhYy5leGFtcGxl
+LmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBANIl+uxlHWFPaQHW
+pllg8LWgqDLorNPhc0lgvzklbpwqvSFnyLHEeJwMGt1FwF/sRDzwgVdMdfmXaxI8
+A8z9q0tLedNFPstFPoAzdIdmdYH5xifts4qpkqnT841q0U/fYsOJhz8zSsepcR4X
+PjQP7HLqa4t28iyfo91sFZvLbpe1FJ088HRkkeW3bUOvCO15yAK63f6M7bKOt+Ho
+Y6J8ztGwsT8GTIH8ypdkYO0mQyA97l5n2z57OmY1HV/30zzYqsfW5JO0ZPPmacSH
+yNBAjVaYhZ7+ezcvHpbTRmWYLQE2BKT7G+GLOLMVHJXhswX+l3gGxv+iBJ9si8BJ
+bGS+plNZuEHysgvhPzNyLsuDbBqQ01cRuN7aHqYvqXoCZkdDB8lbzNg1cjHZy2F1
+n4FKOEsgYirHfwJRDbxJc7VuMF/Q36SWU6VbnN41yrEh5pkTqTefR97H5cQcMWeV
++KHpB34A5M5dHSTTXiTB7cmeKahulN7cpBhvLq5PTRC+EAwo38A4tOedTD2Tyvba
+3apiv2qqtq8pSp9BxOxRTb4TKvDC1MDsb2RzK9YgjrmPrs3+eiZM2IX8wWXQJ5nD
+Ie5v9gRk7TXbAPy9dYaYGMeThMbyQw8BVOK3rmE4DwCHgI6EQU1peX2ACjtDEDnf
+mma9C97jf9tDbBpK60JjrpVY7W1TAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAgEA
+xxAZYLUqH5umdYBQY3Wy4q1LAhUWl+vVK5Y2RPatckkwkme8VA3IRmRibY4w1/QP
+/NEgtXHFI05RaCafVWf8u31pKpYRn7i+306gLF67MJXS01VdHka7JeLaCe+R/R7A
+TKt3rjzPIQAPeJme4wR81E2ajg2OBx1NrX4/QubVE4NQQHZFNwJtWGsDLYccNb/5
+wddfybE1VP8L96UGo74yUQeQx2cpKv9JsolWewbW8s9u2fbr0EQBgpV+AA1Yd0aa
+ob8sj6njdu2ZD1ZHX5b4xr9Z2iSyy+wtwJjjalznMs4mGCxxTFR6s/BeJGxieUb+
+nSk+JN7WxGjgrnhFmNWZXHdyM4aD+9+IEAvj+Im/WW9bco6DMOLWG5Uz4OMoE/jF
+gnExP4VwI9GXAFaxlKTOEVvKGyF6eHsjTYqn849LOyDXmGj3gFW+pDYfJJv5MAlC
+cArUQwUAasizZMqKzx9q1V1S7Fpo1CF1zMNwpuGH0GGy3uTsxtUU5+mb1sWDwgQv
+4ZSGAj3AORXbB4C1zeS1Ty7Axggruq2CqpCl/2nmo9JPFrcRm708g0eb0JyHZnYp
+wGL0VfCSrYm3I5ay+8BkE5SRqZhkniAEguUmA/aXxdUBhsv8gxdfmyeUPmV6ll+H
+4dJsMSps1akswGLmRCULrdHlb3zDMKXUv1ZF9/y2zTY=
+-----END CERTIFICATE REQUEST-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.key
new file mode 100644
index 0000000..a9b9803
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uac.key
@@ -0,0 +1,52 @@
+-----BEGIN PRIVATE KEY-----
+MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDSJfrsZR1hT2kB
+1qZZYPC1oKgy6KzT4XNJYL85JW6cKr0hZ8ixxHicDBrdRcBf7EQ88IFXTHX5l2sS
+PAPM/atLS3nTRT7LRT6AM3SHZnWB+cYn7bOKqZKp0/ONatFP32LDiYc/M0rHqXEe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hcnV4Om7WxLL6r
+q3zr/ETNmHBtZtobJqWbDNgwF0RobpdGtnGAxu93vnNpZcLYlLAGh81zoNt7cQGu
+j9qSW+bSPbiNZc2RID07mBvDXVXarwO0BbRr/Mwbr8vhgBf8mMxYWVpqv53mBr1B
+wPfyk5JXtRHCEctmnv7FJN5O+5h2P9S+kkuS9pXBAoIBAAopNsWHYCilej/WrY6l
+gRiCkT+c/0Bm5fI2hkVsLVWDlpP0dY6ollbqHmgCK4YthrEwNFy4B/sOo21qOySO
+PAsgupH9+HK7SHfJ52D7UPpiztqrDJqhC6gm9R8kAXUOl1Hiig2Fjtdm1gnevhoo
+ghs2/bv++98ak3Yx/G2NwSLvM1+dYJ35W0zuGgeOxSEeESnzy3swfRgUv9ynTDUa
+Edr0zOpu7jiw1QarR4ga6famyO8mbo0bOrqcS3qZHB/AVYpcOQ67/PWtUfTACcLO
+jH0T8N80FxVkYyhZ79ZX8M03Mjn5ruQ+30d0d4zYQz6jSYGnQqDzsac9fDxXiqFn
+j4UCggEBAJ5kanD2KAi8FDrqanMdgPu55JeglhK4x7lN0d5dYZbCtYCllnZ1KXob
+RjGFGJljvvROX0nVfunPZch8NtIQ/2l0rXGmBMTeTcfVsUk0QXUYpzfFLlEcciVb
+iO0ICpY31PLxCr8Xwzjk7aS2pAP1v+rZYPS0oaMEaLEL+dS2bASjHQM6yvxuMuzP
+rhJXgmp8Edk1X9hT4ZJ0H7F14LsAPZBIgrbxNtdjpZv0SmjIJurKxCuz3R8l/3df
+F1WPsHQ4jDraRoSReZ+VqhHrG19+6cVBXkHVL+WtGv5i1FtStZ7WgnJ2f5ed+ChU
+Cl32RYPrI2C2WqnxPbr+j2NQDqGDiQU=
+-----END PRIVATE KEY-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.crt
new file mode 100644
index 0000000..6de7487
--- /dev/null
+++ b/tests/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+CpinfQQJycMulPDz1H09fL5Dt8/B3dTaZQIDAQABMA0GCSqGSIb3DQEBCwUAA4IC
+AQCbWS5hsUYTdjs/E5pMEWV++00Dk/dn08zMWrxlyuBiWd9W+f13lwlsH2605ahY
+BD8kkxm4CNZ5axbxQJWs8EokQIuJj5eVm1q1o+1CJv2Dj44Aef3gZ4dq7Vx/Ix8K
+MLexZgf2ciVSQV50WvgzG5/1Ghn9GyOMML+D7n8TZfsdxwqacZXgrMsoag+1DbSA
+++gTg3GXtCeeaeNEKgFUIUIX/n4GT6R8m7+GdksJojvvPed7aYhuzx8sp71uwLxs
+R1OYPKvbuj3Wa114xu9A306WtR2VuXq2+nK8oXpfzp4nAIZTYooj3YwvfkiR2eI7
+YyFDT+RlZHba8KFXOGFlkzjNN78X1oadHmlPYygxQTgDKurVdB2L4ru4v3+rn+7y
+vUFCs2rQ9hNaSHGS5bJH7rq+YKidMuJrOYRr2gyUfsUp4LfqX9XhQK/h3jyWCHKW
+auq5GGrpAQaxm2x0CckD+vWlvYtM4kiv/ljOxRzav2uH/I1y5UR7aJrQw2SFmDoP
+j6yxAoYWYZU4KD4waMQpWuz8cAFMfrXQuo4hNgTqT0AMncJmbQ0F43zyIBN4Z7sf
+0ZpRMknwK+EaZIMy5ntUvhejifOYm94ZERLlDBzca7zWvIL1IGiAJVK5frJGu5Wc
+emuZrs5MvQwwQ2DfkuI1/r9RStbNs1miXfzQpHYoC9F9/g==
+-----END CERTIFICATE-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.csr b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.csr
new file mode 100644
index 0000000..28c7035
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.csr
@@ -0,0 +1,26 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIEajCCAlICAQAwJTELMAkGA1UEBhMCVVMxFjAUBgNVBAMMDSou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66n+L3h21QcRcMYPej6HHhMZqsT04rrQ82+qMwnTpGfy0LUIJl
+wZHAdAETEKNTBTSUJJUXaqIKTWyYcgsaZDR40/ajbiFoQrNXCCw6mBihHir3Ex6i
+KlsEheDuf3p+y++TDhKx1eJPL8oECnmiVHGrOXBxE5MtgcorQ3ayp+PZRYztNyjY
+BtJjWn3QP/10MAZp4nSlgcmt5dUQy7fM7FrQfOy4oyvUl948ieOB0IA+wUEEOwVR
+XwLqR3bJrzn5uHJEN+GAq2xr14Si1PXRFq7/2qTLcRU8zPTi/YGxjWzKJcqFb1cA
+55HrcyrT1yTwA53e3FAEMX5RB9DCynQsh22KZybeyK0vt5iQXTs0JUmgUi5t9j0G
+WwDBWnr5CLCrxYjuLVY1lK1L0eMUNZCdi7yUt3BV
+-----END CERTIFICATE REQUEST-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.key
new file mode 100644
index 0000000..f5d25e0
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/keys/uas.key
@@ -0,0 +1,52 @@
+-----BEGIN PRIVATE KEY-----
+MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCg9g9zYtqp6AoO
+UMr4yti0T8RhjOAmXNC+vKtPoU/ZxdvoH75dzIrMKn2AXDkH7X9Dwa5rlX0WWDgg
+F3p1BGAVX+wjde/NwJE0i/T5ix0zsLJsFYpfbIkOGTyoenw7lHqLHc6JzQL5DADv
+b0GaytElEbhRjAF4lpheXVuMb/sybT3wVAouzZZGR74djPvc72gGtbKsitZHBGDk
+yKXeSrLjmP4tQvAzczR7oAFTU7wJ94w2+Jtv8GG5osNm4AArt7TzFRYCMEx/UwV9
+GlV8cSelLI1yS1ixmBsd0UCXcoq8fT0S8RIJ88cmcPNCUBYRMRkD6zmvnEjJ2TXT
+ZoBXVTA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tRXCoUCggEBALwDzxxMTO29wXkQ/aPK
+NFjBUwLqv00hcGOKmVCSsoa/mifgACYsTwWMcK0tlvDPxuXEvijN3Mkn8HYTuyF7
+vGPOw1Kmj5rss4j/2DnCW/G9cpPgXjItdMMamWUfMqc6wv4SSGKUdJ77yogc7SGZ
+WBotwvMTBMTI4RChNutrA/ICqBMapuU5QkJ2umK7A7kpqdsP7GAO+Yf28wc3ti1w
+hPi8HCqYQ+wFtHcBEO1FcCu7GbBZnCXLqDoMfVOmwgjkRIuK4OWSQWTB1kSGhnVb
+fslv04WrnYsqrPNxttmh7bsaC9vpcOAoiBo1M0CMdIjIWPG+s0+u7maZzQW9mxWE
+b8ECggEAaivTQqVBqPGMZfzTetsK+Ae7QLA3K9ulAhkkSJJqkbSFGg2z979g3TGD
+cjI4cSBLXVKMTwBumoc5JDBhOZ6IV9C7ojxKuiI3nIlDWxsY+MUB4LE46growIKX
+REaSIHG9KydTxJQcEjPPI1FR6fxNmIEfPUSIZPVEqkNxYspWUlF/wDz2cyCf06xT
+0pNjP2UawHmdzlohmK5S7AE1GX1m0KIyS2OFFGykBIQ6B+i367vPqBmEVLYkVHmP
+3KiYjBGvRfDYyFD7IBsPvGdcpt56vTaxpyq7Q27VOBU5vmBRY/hPFeSpBqHq2DzA
+1g9hGu9bA0qdotBMeYa/eS5WRcb+AA==
+-----END PRIVATE KEY-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cacert.pem b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cacert.pem
new file mode 120000
index 0000000..440ae96
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cacert.pem
@@ -0,0 +1 @@
+../keys/uas.crt
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cakey.pem b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cakey.pem
new file mode 120000
index 0000000..0f76a9b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/cakey.pem
@@ -0,0 +1 @@
+../keys/uas.key
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/invite_recv.xml b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/invite_recv.xml
new file mode 100644
index 0000000..2ab846e
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/sipp/invite_recv.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Receive Invite">
+ <Global variables="remote_tag" />
+
+ <recv request="INVITE">
+ <action>
+ <ereg regexp=".*(;tag=.*)"
+ header="From:"
+ search_in="hdr"
+ check_it="true"
+ assign_to="remote_tag"/>
+ </action>
+ </recv>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 180 Ringing
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sips:[service]@[local_ip]:[local_port];transport=[transport]>
+ Content-Length: [len]
+
+ ]]>
+ </send>
+
+ <send retrans="500">
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sips:[service]@[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv request="ACK" />
+
+ <send retrans="500">
+ <![CDATA[
+ BYE sips:[service]@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From: <sips:[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
+ To: [$remote_tag]
+ [last_Call-ID:]
+ CSeq: [cseq] BYE
+ Contact: sips:[local_ip]:[local_port]
+ Max-Forwards: 70
+ Content-Length: 0
+ ]]>
+ </send>
+
+ <recv response="200" />
+
+</scenario>
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/test-config.yaml b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/test-config.yaml
new file mode 100644
index 0000000..ed11289
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/cn/test-config.yaml
@@ -0,0 +1,44 @@
+testinfo:
+ summary: 'Test TLS using a certificate with a wildcard CN'
+ description: |
+ 'Originate a call using TLS from Asterisk to a remote endpoint,
+ and verify usage of a wildcard certificate. If the call is
+ successfully established then it worked.'
+
+test-modules:
+ test-object:
+ config-section: test-config
+ typename: 'sipp.SIPpTestCase'
+ modules:
+ -
+ config-section: orig-config
+ typename: 'pluggable_modules.Originator'
+ -
+ config-section: dns-server-config
+ typename: 'dns_server.DNSServer'
+
+test-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'invite_recv.xml', '-s': 'uas', '-p': '5062', '-t': 'l1', '-tls_version': '1.2' } }
+
+orig-config:
+ channel: 'PJSIP/uas'
+ application: 'Echo'
+ async: 'True'
+
+dns-server-config:
+ port: 10053
+ python-zones:
+ -
+ example.com
+
+properties:
+ dependencies:
+ - asterisk : 'chan_pjsip'
+ - asterisk : 'res_pjsip'
+ - asterisk : 'res_pjsip_session'
+ - asterisk : 'res_pjsip_sips_contact'
+ tags:
+ - pjsip
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/ca.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/ca.crt
new file mode 120000
index 0000000..1d16722
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/ca.crt
@@ -0,0 +1 @@
+../../keys/ca.crt
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/extensions.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/extensions.conf
new file mode 100644
index 0000000..ab109a1
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/extensions.conf
@@ -0,0 +1 @@
+[default]
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjproject.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjproject.conf
new file mode 100644
index 0000000..f7b8e9b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjproject.conf
@@ -0,0 +1,10 @@
+[log_mappings]
+type = log_mappings
+asterisk_error = 0,1
+asterisk_warning = 2
+asterisk_verbose = 3
+asterisk_debug = 4,5,6
+
+[startup]
+type = startup
+log_level = 3
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjsip.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjsip.conf
new file mode 100644
index 0000000..1389f8d
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/pjsip.conf
@@ -0,0 +1,24 @@
+[global]
+type=global
+debug=yes
+
+[transport-tls]
+type=transport
+protocol=tls
+bind=127.0.0.1:5061
+method=tlsv1_2
+priv_key_file=<<astetcdir>>/uac.key
+cert_file=<<astetcdir>>/uac.crt
+ca_list_file=<<astetcdir>>/ca.crt
+verify_server=yes
+allow_wildcard_certs=yes
+
+[uas]
+type=aor
+contact=sips:uas.example.com:5062\;transport=tls
+
+[uas]
+type=endpoint
+direct_media=no
+allow=!all,ulaw
+aors=uas
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/resolver_unbound.conf b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/resolver_unbound.conf
new file mode 100644
index 0000000..38ef153
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/resolver_unbound.conf
@@ -0,0 +1,3 @@
+[general]
+nameserver = 127.0.0.1 at 10053
+resolv =
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.crt
new file mode 120000
index 0000000..9ada8f1
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.crt
@@ -0,0 +1 @@
+../../keys/uac.crt
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.key
new file mode 120000
index 0000000..f141b2b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/configs/ast1/uac.key
@@ -0,0 +1 @@
+../../keys/uac.key
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/dns_zones/example.com b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/dns_zones/example.com
new file mode 100644
index 0000000..79a9c6e
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/dns_zones/example.com
@@ -0,0 +1,29 @@
+zone = [
+ SOA(
+ # For whom we are the authority
+ 'example.com',
+
+ # This nameserver's name
+ mname = "ns1.example.com",
+
+ # Mailbox of individual who handles this
+ rname = "root.example.com",
+
+ # Unique serial identifying this SOA data
+ serial = 2003010601,
+
+ # Time interval before zone should be refreshed
+ refresh = "1H",
+
+ # Interval before failed refresh should be retried
+ retry = "1H",
+
+ # Upper limit on time interval before expiry
+ expire = "1H",
+
+ # Minimum TTL
+ minimum = "1H"
+ ),
+
+ A('uas.example.com', '127.0.0.1'),
+]
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/README.txt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/README.txt
new file mode 100644
index 0000000..0777475
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/README.txt
@@ -0,0 +1,16 @@
+# certs generated using the following commands:
+
+# create CA
+openssl req -x509 -days 999999 -newkey rsa:4096 -nodes -keyout ca.key -out ca.crt
+
+# create server key and signing request
+openssl req -newkey rsa:4096 -nodes -keyout uas.key -out uas.csr -subj="/C=US/CN=uas"
+
+# create server certificate
+openssl x509 -days 999999 -CAkey ca.key -CA ca.crt -in uas.csr -set_serial 01 -req -out uas.crt -extfile <(printf "subjectAltName=DNS:*.example.com")
+
+# create client key and signing request
+openssl req -newkey rsa:4096 -nodes -keyout uac.key -out uac.csr -subj="/C=US/CN=uac.example.com"
+
+# create server certificate
+openssl x509 -days 999999 -CAkey ca.key -CA ca.crt -in uac.csr -set_serial 01 -req -out uac.crt
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.crt
new file mode 100644
index 0000000..95518c0
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.crt
@@ -0,0 +1,33 @@
+-----BEGIN CERTIFICATE-----
+MIIFqTCC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VaB7XY3BMjQ82gcDGDXBqIr4fM4ndl6vQ6M77BdWFZ6Yv7a417yniTMu1u
+9kz29GLbO8we3+KLm45FAgMBAAGjUzBRMB0GA1UdDgQWBBSNsrYP0eqyatcYvc46
+7URDvkiW5DAfBgNVHSMEGDAWgBSNsrYP0eqyatcYvc467URDvkiW5DAPBgNVHRMB
+Af8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4ICAQCmtdGUE3EH5nyjUpk/aVBPZJmB
+a6aw3XDEY0VkdT/cdGUCGHzbhLhu/DZ0nm3EbvSjDMo66w3IvCFMVGXbzfogQ3vU
++S1wtHjlTkjYOU9YPxMfPnLMzoAr8aJI0TPH6KnVURXdZXXUR4RVq/oCigM9Yr9N
+2cA6mf0HhGTVm6mAZWxuJFFA9bGhoIZ5XWdvvFahwdHKJyt1GxWxGwIdlVtN0/aL
+ql2GbR+Gp6/Oj9VYrKUchw10beYCKMk+TE7olKZsDQUsivk+TXAfvwUfansQZ99V
+aiJsIfO16NQbZLl4C96L4W/4CVOoOWb6QfT2N4YeAhiBlveBkowcdqv0A9PyLMhk
+qMKZAeSa0N2ygIkFm/EngxgmEJ2VT3+aJSVsep0orOScuMTr2w0iNCa84inKjexT
+37WRUFY3/0iAqnrr02H5jY5O3t4+4l5AF6f8xS1WMw8pDkYQwYuFUlA5g9Nr/np+
+Ur6P3H9xVkOiQ5eRC0BBsh9/QKjYbZXrr0p3Lt+TvAmw/cqBSS+LSShdbhEyeIv7
+R689UGTSI+esBjPgyawa9OS6H844LWs8XFsl84Z1rYEaX7hr8nREZHTn6xmygW/V
+q/+fVE1hmOuYN6AQV3U4Pl7MU6TXdWd5w9aFEurI3X825YAFspuncK9/haI++Upv
+6AZBQSqYcNtR92V9Fw==
+-----END CERTIFICATE-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.key
new file mode 100644
index 0000000..979fc58
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/ca.key
@@ -0,0 +1,52 @@
+-----BEGIN PRIVATE KEY-----
+MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQC3n81zGtR3N8r9
+z6qpdIelbRSIFDtuKyNyilpCfD2I3pjvF1/3ggGHjA9RJVjx0Vgg72aXJK3FBura
+oCu8hCY4AwwURA4dQ/668ozHFkNnGBdMQ9F9uq09MNrfHucpVE1+5ElU/xEXDKy+
+0EeFLwTxxqz17gQjGyymMkSeFMCHq1SeBhKDcr7GdTCtqAvjqRdnIgc1TvIQs88d
+J9Ez/KMfHwZDdQrRnA2hrIQgDAuWbMoJF7QnStAAc3pjdkV3zrCy7QbZkdVQOykb
+i2rfdm3FZ8y4QVxNEXeEYsJPmHYP2PYJAnGydzNIvtoIKUBRK5iaPJ1OrBHfpVmK
+yqy4ct4PXy5kRCyP5WHqP4gsOLqBTYAtGgEQwPBJwsQtHQMvBSsba89RtYy4KGP8
+UfycpkjIF/VYYm8NO8ZXXF5sc2PRkgjywxiNiPjZfUzp9LqygcElWc63IcTNfgEm
+FFSNb/dL8nGBNdX51Y/eMz7lDV+PA8eXyklA20C/BGZiBa39ao41YHj25uFiGBSI
+/gUzTpTpxj5fil//Qy7qGpi1+WYxNNJ6+6TyeBXTiChMN/HUzUbZiU16r09Bly7T
+6RTzBymQRtHHWpoFWge12NwTI0PNoHAxg1waiK+HzOJ3Zer0OjO+wXVhWemL+2uN
+e8p4kzLtbvZM9vRi2zvMHt/ii5uORQIDAQABAoICADGYauBM/dfZbO1SurCcNcr7
+hFEgzdB6vE9CiRBuCBzAqqPhN11dctZOgRCUuspNlbUHlDj8gia2MJauLkHzm3MD
+d669luZWqCWMP3PCUqA0xI4nvxxrYEEnweYDrcHe8DN2q0vWvKHyHXJIRRj20yoO
+VEb0a4+j1lJpP1lHF51NLESmNTfltRtbKbOtsNBjqluDuFiwovbZ6fXg/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BqaTdhbNznWhFZmFCRMxIfZ4XrFQVqr1tz7WXkuKb9KapCfC/vH
+BusYWCyI3erZvVHTz2thQtoqp4bEAwalMF8lWadWLOhjhxjPdkZbUBYBiAisO1th
+KcnkZRueGPfB4++puXDf+CNsb7yvhJsu
+-----END PRIVATE KEY-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.crt
new file mode 100644
index 0000000..acc6aba
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.crt
@@ -0,0 +1,29 @@
+-----BEGIN CERTIFICATE-----
+MIIFADCCAugCAQEwDQYJKoZIhvcNAQELBQAwYzELMAkGA1UEBhMCVVMxEzARBgNV
+BAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0
+ZDEcMBoGA1UEAwwTQXN0ZXJpc2sgUHJpdmF0ZSBDQTAgFw0yMjA1MjYyMTE2MTVa
+GA80NzYwMDQyMTIxMTYxNVowJzELMAkGA1UEBhMCVVMxGDAWBgNVBAMMD3VhYy5l
+eGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMYjj608
+5ePhrTSlyvezg2dPN2LqShT2DDU3Pff1LWzXQXz3OYSH6K6LKcV9+gZkixQLEFkp
+rxcWcf9L5KNYA+CAGiUK0Ljd9KVOLoyd1sPJZQKV6pFGomY0po9ACYLK3E0+tBqw
+wCkQNDGdns4aw03kPqRN5fBxlrTOEEp+JRzAv5tBYQVptpOytsqQzeSdK9UbtVD5
+NG4IHWMdKUCjnECLulTDtxGt9RNK3LhGkmLkyH8FQnRE3x2T3c2h2aLtAmuZRrbs
+HwPpAa2EgpBRk8kaeLqLz41qwf4ykMxjqooMILnQ/iQi7ii0MeOhr0bTzvGVoGuj
+NM2XgELEs3+Epyn2c8DdFH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Kk1+Fw
+-----END CERTIFICATE-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.csr b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.csr
new file mode 100644
index 0000000..4d9499e
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.csr
@@ -0,0 +1,26 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIEbDCCAlQCAQAwJzELMAkGA1UEBhMCVVMxGDAWBgNVBAMMD3VhYy5leGFtcGxl
+LmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMYjj6085ePhrTSl
+yvezg2dPN2LqShT2DDU3Pff1LWzXQXz3OYSH6K6LKcV9+gZkixQLEFkprxcWcf9L
+5KNYA+CAGiUK0Ljd9KVOLoyd1sPJZQKV6pFGomY0po9ACYLK3E0+tBqwwCkQNDGd
+ns4aw03kPqRN5fBxlrTOEEp+JRzAv5tBYQVptpOytsqQzeSdK9UbtVD5NG4IHWMd
+KUCjnECLulTDtxGt9RNK3LhGkmLkyH8FQnRE3x2T3c2h2aLtAmuZRrbsHwPpAa2E
+gpBRk8kaeLqLz41qwf4ykMxjqooMILnQ/iQi7ii0MeOhr0bTzvGVoGujNM2XgELE
+s3+Epyn2c8DdFHdRUZlJFRYIioZ3PVoS5iPynnxoEka/UhsWVtWX1ywwxHiBt7q/
+hqG0qCwT4TkOF9E6l2sYFl+QlSv5q+tmTpTYbU+pZR9xXBFe7XP4/84f0grhK9CM
+klE6h742Q1PkDhkb05zbWqnMsyuIBiqgNtiKGadLTdLGR2yZTeIDzyrWQwdj3UMp
+f3TYPYdHUDdNquYNHExInewnPbfKsaJUaoWEpVPJaY7ex4dPn+/fG4rCJ1o7ww5q
+m5gvDi0NvrTulViFEDWUoGmTXmxJLSSHukIKybf2YZx8xZj5Bk40bkSk4uJlVaWZ
+iLHF8hKeSa9m7O8NUJzOc8nkveuLAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAgEA
+C/pO+kddgX7XOQSOPVsi27wq/5JDaek3wGfP1jLfI7tpd/Xm+TLo9dkJxA4MVlmx
+6HzW+qPAM6haipbCfrnHrQb5z7G4x2SJWHq0AeTtUtn1nfgV4R9DGRKe2ufwnfAu
+zdm/HMn01j0dj6zD9fgbeQgGzAkxyvXtO1sZ/2lPPBHsZo0h97tCtwa7iGwc1IVv
+4MmBJ+67B+G7jvw4+AdIZEG4l3WoQuN0JHUQqeNtF0YUZmQOkloxmT4TLVAFb1ZO
+69CyR03lhi0JFRO9PY7GDkbJoikmSt5/0NS6Mw4g5LlciTLXiZgh7ffRdJ/C+93Y
+9wBGApz+qbYZ/SoJEy5A5AS1pQ9UHeA9WXHQOhsOm2AlD0aGDEsVjg40IBnKIToH
+lLHpAHt8/jeO4Flp2fkIONrfYjqTushoNVchEBW7hCbzmMZUP8zfB9MJMn5EPqqU
+4LhyBT3LKt016aGWFgQwrTYrJqGFBRrOs39GYztyCvf5N6DKRnzqoE/siufKOEpX
+KwCtvXnTSi+uSiLkPIeGkrJGzkVUveg4554Mg8QL2MIqSkDgmmn3GZoYfzNM9bKS
+qW3scHMu+trrYru6oBnAQDk0Rg/xKKjSJel7pO67LsJR+EobqBnla8kVIciqUR1K
+BOgJ3AM8NIr97tmCWqWBPfNFsk18yoWV+YjEpX7gU+k=
+-----END CERTIFICATE REQUEST-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.key
new file mode 100644
index 0000000..075f2f4
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uac.key
@@ -0,0 +1,52 @@
+-----BEGIN PRIVATE KEY-----
+MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQDGI4+tPOXj4a00
+pcr3s4NnTzdi6koU9g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ow_wildcard_certs/san/keys/uas.crt b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.crt
new file mode 100644
index 0000000..066f246
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.crt
@@ -0,0 +1,30 @@
+-----BEGIN CERTIFICATE-----
+MIIFFzCCAv+gAwIBAgIBATANBgkqhkiG9w0BAQsFADBjMQswCQYDVQQGEwJVUzET
+MBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQ
+dHkgTHRkMRwwGgYDVQQDDBNBc3RlcmlzayBQcml2YXRlIENBMCAXDTIyMDUyNjIx
+MTYwMloYDzQ3NjAwNDIxMjExNjAyWjAbMQswCQYDVQQGEwJVUzEMMAoGA1UEAwwD
+dWFzMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwdFyJYpoBrEtf079
+OoE575WaCLCFEtr9xkAGhOkAhRrox3k370G/yznU997IjbQ0b3M5GCt9GITagMhY
+48z6xQi1vb1kZfAq60j8JflyqU1S1c1O5GoTOO8r1ragGExbxlNucxeeLUtu5l7h
+OILqiLgWr6T3e/nnziUO1KGiBJm5bawP6iS8STkmNeMPP6y70542EZG4Gd4cNPtT
+zuqhi12PzlxCecb3I5Znn/vyt2l0ClJaJ/F7nHpE6A9bvoW3uMlAHLmEsAKSNhNE
+aDjnSIHrPS88ifpTOWPDTKkZ80QmWtvpi1dkgxu2Qev5bTrwtWyVKaQCb8Wjwy8F
+pvtiPuZftTA143jFkW7NQrbik0A8FPKbN8lnLpN8eX+sExANLIbiMwh2JGFk9J1/
+FgB4+esGXb4abJqGuS4Dg7HQoNiayTViz16K06HuSLF8Feah3buphVgXePoMxHlQ
+riCGRD5zgbaMULGrelCKUtmOaLXarlJwGX0Ovl9FiSKCaPWxreT+EDGLUfyzbNfS
+UE4Z4QjEM57tO+UsKACvZXbM1kzOc6j6+yzUC0UEkzTuULVsKXze8NQQU2zseOyr
+A2EqOMRI7GiuN6N3fbndQfr64Y66c3RjHp1QDtDu5NvQT7o8DomJ//ddbCiiTUHp
+G2gTLSmwa+lfvjTeZfKZp/5cVvMCAwEAAaMcMBowGAYDVR0RBBEwD4INKi5leGFt
+cGxlLmNvbTANBgkqhkiG9w0BAQsFAAOCAgEAD3K0V5CcS9OUCYnry97rJg9MaoG4
+w2pImUSBzqTXkDmp8doXU8kyXhML+noyy0C0vFYhyZNiVUoeekF8WRiTtT0ebRc5
+lYKoNdebjpi8rl4RD5Um9tM2Vsic8D2H0Mk2r8CZWyXi3Y/huY8shNlGbmRMv+0p
+2OwRcMUN2vxlfBm9sc4QL3dCaEy2GzNVmndjnh1W2sUGY66axTcNTYJyMT8TJ3/h
+TyEO2g1WpAcmWhQTa43lRrxqp3wQj2XyLJk+RvYiNiwymOh24feecfu9fIX9UMpN
+kLNOvLtwJESD9Ls60KfXA76etlV2MZ47JcciNGdf0YBJ0G+PeNDo7i39nkszThEi
+xn56jc/3X91Hv/H5NcummaWfDkSv33rP/78NAm8NvmPU7/bXxKqJ6bBzmJuR8aBy
+HQiAa3lEe5SkLW3I/ylJ1dqaJB4MMiY3a/6xPkBkkbxc1rgj4jkxI9V6pAkmQZhN
+g5bPwCU2dwXGmdWPWQ9uy6IhKiCVVL/2E5tKetOxjSfTjrwBHaDv7EY4Lvb3eXO0
+5MAr4T/wYV7awgdJYRVDOG+2pttECmn5gV073kMcky6/VBhwSXA+1SPjBbh4/nz4
+77VTEFOF9Pl/+YBTvIbAj3sV5VwNQe3jsi0JJeP798oTs8IWUun1Eze+MChb1uSp
+taMVUQOaz8YzND0=
+-----END CERTIFICATE-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.csr b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.csr
new file mode 100644
index 0000000..7f50120
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal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UHVRnrH5lcyB+kqSIYtPsnbMlj/1Gv3Gxly9vJB
+RtiRdwkpUAJcdS9uONPHLdMozIJnOyJja++yPHlvjKRQk4HBWK1EvDU8XOKZl45p
+FKaGsYQBMpJiIla5Fsu8S1+OU38GVWsRuCQSCQhOCu7AUm238KywgB7gRiuaybia
+jjdJqjFZ/nV2Oq1B+2Pkb5Xi4h2X6w+BvUFcbFwNJq2nHXVibRmIARVvU6WZAQP5
+JXjPn4ZFHTYn+0ejz+gNVon6Fan7gjFV20blmHjpfwvGA/Qdcq1b+25d4LJne5yh
+SWYd8wYQrrBwD4f8xW0Sl8DLt0yHVAzuIci9ibUrLd5vQUoyuObLwAtgLtiLLBcs
+slIoEA7qmvE3qtP1oPsKm4H9Mbka9rFFmLyHSjoXMZ+Zk8V1TuzcBhGZy74mVY2A
+656b446wK0GhNFRR99G0zy6NvExoldzsq2sWHNPGvgdMqI7/Kreb3QRRiq6sS7wt
+0AX329y/kKon3JtxsfJSVxRekZ8=
+-----END CERTIFICATE REQUEST-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.key b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.key
new file mode 100644
index 0000000..01f60b4
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/keys/uas.key
@@ -0,0 +1,52 @@
+-----BEGIN PRIVATE KEY-----
+MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDB0XIlimgGsS1/
+Tv06gTnvlZoIsIUS2v3GQAaE6QCFGujHeTfvQb/LOdT33siNtDRvczkYK30YhNqA
+yFjjzPrFCLW9vWRl8CrrSPwl+XKpTVLVzU7kahM47yvWtqAYTFvGU25zF54tS27m
+XuE4guqIuBavpPd7+efOJQ7UoaIEmbltrA/qJLxJOSY14w8/rLvTnjYRkbgZ3hw0
++1PO6qGLXY/OXEJ5xvcjlmef+/K3aXQKUlon8Xuc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JYFGM3oMcV5cTVy3z8z5WsAEDh4SLvG9Mi+KIocaFfRz2EcTflvo
++mGDSqcH5H/CpPYVy1K4QhLG/AD3k1GOS9zXzFldAoIBAA1kh0+xafO0QhA1tWtL
+hRGHON0nkWIDwMscKuO9i1X4toRAU/k1J5gifVnIvulPbivGLr22SihzUsTFcoYz
+S14yEQVgvTr9d7xv+PKCz8NcSxnFXdF5CLlYucgh+pdQ0UydWkvVr8hcrqFQeSx9
+Z4XIA6SqDmIqQN/BV0lEowMZC4/eBDVxXkBz/885HwcXsI3bSlye4iJBHpAdzOfR
+jCMXGd5P1phXOoIOBAPngotIFpVhmGcy7OR7IfpSsK7oHRA+SAsJy4WLcHBTlEce
+QFB8Rc68bEX3bFkmoWL9kmkSXdWxcqrjh1Kmt/3l7t4pRMyqg9Xzmly7EeR8oevP
+qwECggEBAKcd/7MCTckvX4yRtmnIBHre0lX+ZRyalUTnjVJeI/lIO6WeZXN0yWd/
+FidDta60F84nGnG7r7lKCxBoT+xsEYojeXpIZlJLCm3P+91DO6S38ywo7T+mYyCc
+ejWtv0RubCwdmdc+MaPxYIP4tCeLt5R43pcLC22ZVAtMFtdFkgzgLHWFMQgmlT2a
+HV8kKvlKkByskUxIzthZ6TJHE56mFh5LGrvNzmxP4484wPrAr93Y/Szbl9vZWuNQ
+wgaiQkJTST8aSvUFyJIIViLi8otxsq1nGE5lFhCiCzP8XzCkoComvN71eE+x8CM8
+Rx2Oy//JtAAzcF2LclDAtfkZ6TCmPzg=
+-----END PRIVATE KEY-----
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cacert.pem b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cacert.pem
new file mode 120000
index 0000000..440ae96
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cacert.pem
@@ -0,0 +1 @@
+../keys/uas.crt
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cakey.pem b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cakey.pem
new file mode 120000
index 0000000..0f76a9b
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/cakey.pem
@@ -0,0 +1 @@
+../keys/uas.key
\ No newline at end of file
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/invite_recv.xml b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/invite_recv.xml
new file mode 100644
index 0000000..2ab846e
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/sipp/invite_recv.xml
@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Receive Invite">
+ <Global variables="remote_tag" />
+
+ <recv request="INVITE">
+ <action>
+ <ereg regexp=".*(;tag=.*)"
+ header="From:"
+ search_in="hdr"
+ check_it="true"
+ assign_to="remote_tag"/>
+ </action>
+ </recv>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 180 Ringing
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sips:[service]@[local_ip]:[local_port];transport=[transport]>
+ Content-Length: [len]
+
+ ]]>
+ </send>
+
+ <send retrans="500">
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag01[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sips:[service]@[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+
+ v=0
+ o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
+ s=-
+ c=IN IP[media_ip_type] [media_ip]
+ t=0 0
+ m=audio [media_port] RTP/AVP 0
+ a=rtpmap:0 PCMU/8000
+
+ ]]>
+ </send>
+
+ <recv request="ACK" />
+
+ <send retrans="500">
+ <![CDATA[
+ BYE sips:[service]@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From: <sips:[local_ip]:[local_port]>;tag=[pid]SIPpTag01[call_number]
+ To: [$remote_tag]
+ [last_Call-ID:]
+ CSeq: [cseq] BYE
+ Contact: sips:[local_ip]:[local_port]
+ Max-Forwards: 70
+ Content-Length: 0
+ ]]>
+ </send>
+
+ <recv response="200" />
+
+</scenario>
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/test-config.yaml b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/test-config.yaml
new file mode 100644
index 0000000..7fc276d
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/san/test-config.yaml
@@ -0,0 +1,44 @@
+testinfo:
+ summary: 'Test TLS using a certificate with a wildcard SAN'
+ description: |
+ 'Originate a call using TLS from Asterisk to a remote endpoint,
+ and verify usage of a wildcard certificate. If the call is
+ successfully established then it worked.'
+
+test-modules:
+ test-object:
+ config-section: test-config
+ typename: 'sipp.SIPpTestCase'
+ modules:
+ -
+ config-section: orig-config
+ typename: 'pluggable_modules.Originator'
+ -
+ config-section: dns-server-config
+ typename: 'dns_server.DNSServer'
+
+test-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'invite_recv.xml', '-s': 'uas', '-p': '5062', '-t': 'l1', '-tls_version': '1.2' } }
+
+orig-config:
+ channel: 'PJSIP/uas'
+ application: 'Echo'
+ async: 'True'
+
+dns-server-config:
+ port: 10053
+ python-zones:
+ -
+ example.com
+
+properties:
+ dependencies:
+ - asterisk : 'chan_pjsip'
+ - asterisk : 'res_pjsip'
+ - asterisk : 'res_pjsip_session'
+ - asterisk : 'res_pjsip_sips_contact'
+ tags:
+ - pjsip
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/tests.yaml b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/tests.yaml
new file mode 100644
index 0000000..dae04ee
--- /dev/null
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/allow_wildcard_certs/tests.yaml
@@ -0,0 +1,3 @@
+tests:
+ - test: 'cn'
+ - test: 'san'
diff --git a/tests/channels/pjsip/secure_calling/calls/nominal/tests.yaml b/tests/channels/pjsip/secure_calling/calls/nominal/tests.yaml
index 1243cfb..0e5cdaa 100644
--- a/tests/channels/pjsip/secure_calling/calls/nominal/tests.yaml
+++ b/tests/channels/pjsip/secure_calling/calls/nominal/tests.yaml
@@ -1,5 +1,6 @@
tests:
- test: 'all_ciphers_verify_certs'
+ - dir: 'allow_wildcard_certs'
- test: 'limited_ciphers_verify_certs'
- test: 'two_CAs_verify_certs'
- test: 'two_CAs_no_verify_certs'
--
To view, visit https://gerrit.asterisk.org/c/testsuite/+/18653
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Change-Id: I2d4cf66b642ccf97a6b275e1425c0cbfad5eb0ab
Gerrit-Change-Number: 18653
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220608/47cb768a/attachment-0001.html>
More information about the asterisk-code-review
mailing list