They both work. I changed 3022 to 6262 though.
v0vten@Ursu14-Focal-Mango:~$ openssl s_client -connect Ursu14-Focal-Kiwi:1280
CONNECTED(00000003)
Can't use SSL_get_servername
depth=2 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
verify error:num=19:self signed certificate in certificate chain
verify return:1
depth=2 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
verify return:1
depth=1 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
verify return:1
depth=0 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi server certificate
verify return:1
---
Certificate chain
0 s:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi server certificate
i:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
1 s:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
i:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
2 s:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
i:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIGKTCCBBGgAwIBAgIQIFC79nRuUft3RD1t6EpRyzANBgkqhkiG9w0BAQsFADBx
MQswCQYDVQQGEwJVUzESMBAGA1UEBxMJQ2hhcmxvdHRlMRMwEQYDVQQKEwpOZXRG
b3VuZHJ5MRAwDgYDVQQLEwdBRFYtREVWMScwJQYDVQQDEx5VcnN1MTQtRm9jYWwt
S2l3aS1pbnRlcm1lZGlhdGUwHhcNMjMwMjEzMTc1MjM2W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3/k9UTBTBgNVHREETDBKghFVcnN1MTQtRm9jYWwtS2l3aYIJbG9jYWxob3N0ghFV
cnN1MTQtRm9jYWwtS2l3aYIRVXJzdTE0LUZvY2FsLUtpd2mHBH8AAAEwDQYJKoZI
hvcNAQELBQADggIBABhoYJtQe716pnGX1J8DiymVcVA98BpJHFuKHZrqU9PPeqTG
PVSi0so0kGc+ZVrfrR+h24EOdTfMkd3g2vh8UBbHcKQjXb4yIszEKtJXiV48/B+N
GPSHmpFpA+tYc1hQr/WIPCEdwTMcnbsOxobsNooHua/dUISG+8E6YJzN7XoiLwOk
ThuIcXxeXIfb27VFuq4mMx8ZXIebjG1/Tfz1jFGcdGNWDllTKSZN8vCIbTrVSus1
S2LSmZFlEzfkorDGxzhmXTlQDeXB3VhPaBt/F7b1t2NTcaGrM55kr5tsF3VYnrzz
eF+rmPDKNRvCsOfehgvtJRxenuXP7dsoktMj8AZBAD8ccjcYFhToocFqHDx7Lpvp
Mmq+lDK1UfwhR+e62/XW507NrGJT+cA+Ir+sMULgkETLardChzpqFs8BsjDvsby/
ovxOPYUgfTYF4q58RR2064+/5deehBxK1/qCxiO/YtL1/0VjdxQN0izf4/vl+q4p
VXwhoSCMzmNaSBmGYoT50m7jCq2JLTucFhIQ/b2jD05QVMj0v5fDOQ0kuDRiCiGI
3YwW320P+ea6/mFgwGnrJFHzrd1ZO6iQnA5wI7eMJzkBjP9KzDiHhyMvT6+1v7a/
nS9qoJxuFjvCcDV9isl8ZlUL91RtlHBqkL446H5+caw1tRvEJfxjm/XHwoWb
-----END CERTIFICATE-----
subject=C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi server certificate
issuer=C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
---
No client certificate CA names sent
Requested Signature Algorithms: RSA-PSS+SHA256:ECDSA+SHA256:Ed25519:RSA-PSS+SHA384:RSA-PSS+SHA512:RSA+SHA256:RSA+SHA384:RSA+SHA512:ECDSA+SHA384:ECDSA+SHA512:RSA+SHA1:ECDSA+SHA1
Shared Requested Signature Algorithms: RSA-PSS+SHA256:ECDSA+SHA256:Ed25519:RSA-PSS+SHA384:RSA-PSS+SHA512:RSA+SHA256:RSA+SHA384:RSA+SHA512:ECDSA+SHA384:ECDSA+SHA512
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 5449 bytes and written 377 bytes
Verification error: self signed certificate in certificate chain
---
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256
Server public key is 4096 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 19 (self signed certificate in certificate chain)
---
---
Post-Handshake New Session Ticket arrived:
SSL-Session:
Protocol : TLSv1.3
Cipher : TLS_AES_128_GCM_SHA256
Session-ID: 77FBF07F0F1A008B47D7857B28FAE9AB2865A70988C5D74189CBD37096CB0386
Session-ID-ctx:
Resumption PSK: F04EBC0E401AB68EE4415366636FB97F772363DCA4FC4F0D52F091BEC5918D85
PSK identity: None
PSK identity hint: None
SRP username: None
TLS session ticket lifetime hint: 604800 (seconds)
TLS session ticket:
0000 - bc d3 8f a9 b2 00 cf e3-d9 77 b2 e1 d2 6e 0e 47 .........w...n.G
0010 - e5 00 18 c2 b1 c7 c0 31-52 0a ce c8 3e ff 9a 99 .......1R...>...
0020 - 5a 6d 59 62 63 37 2b c8-a8 25 72 af 51 be 82 85 ZmYbc7+..%r.Q...
0030 - a3 5c 94 fe c4 19 8f 32-37 b7 ef 30 89 f3 2b a1 .\.....27..0..+.
0040 - 23 cf 39 1b 46 b7 af 2f-0a 04 4a f9 18 00 97 ab #.9.F../..J.....
0050 - 09 09 15 cd a8 a1 1d 48-02 e6 7f d3 d9 27 5b 0d .......H.....'[.
0060 - 0d d9 0d 6a 15 aa d9 0b-f2 a0 b0 63 f3 67 73 9f ...j.......c.gs.
0070 - 91 .
Start Time: 1676398806
Timeout : 7200 (sec)
Verify return code: 19 (self signed certificate in certificate chain)
Extended master secret: no
Max Early Data: 0
---
read R BLOCK
closed
v0vten@Ursu14-Focal-Mango:~$ openssl s_client -connect Ursu14-Focal-Kiwi:6262
CONNECTED(00000003)
Can't use SSL_get_servername
depth=2 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
verify error:num=19:self signed certificate in certificate chain
verify return:1
depth=2 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
verify return:1
depth=1 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
verify return:1
depth=0 C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi server certificate
verify return:1
---
Certificate chain
0 s:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi server certificate
i:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
1 s:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
i:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
2 s:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
i:C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-root-ca Root CA
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIGKTCCBBGgAwIBAgIQIFC79nRuUft3RD1t6EpRyzANBgkqhkiG9w0BAQsFADBx
MQswCQYDVQQGEwJVUzESMBAGA1UEBxMJQ2hhcmxvdHRlMRMwEQYDVQQKEwpOZXRG
b3VuZHJ5MRAwDgYDVQQLEwdBRFYtREVWMScwJQYDVQQDEx5VcnN1MTQt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B/qWVH6TCE+cKCjAfBgNVHSMEGDAWgBQ3o6smpHRtWEtVc8kgQF8N
3/k9UTBTBgNVHREETDBKghFVcnN1MTQtRm9jYWwtS2l3aYIJbG9jYWxob3N0ghFV
cnN1MTQtRm9jYWwtS2l3aYIRVXJzdTE0LUZvY2FsLUtpd2mHBH8AAAEwDQYJKoZI
hvcNAQELBQADggIBABhoYJtQe716pnGX1J8DiymVcVA98BpJHFuKHZrqU9PPeqTG
PVSi0so0kGc+ZVrfrR+h24EOdTfMkd3g2vh8UBbHcKQjXb4yIszEKtJXiV48/B+N
GPSHmpFpA+tYc1hQr/WIPCEdwTMcnbsOxobsNooHua/dUISG+8E6YJzN7XoiLwOk
ThuIcXxeXIfb27VFuq4mMx8ZXIebjG1/Tfz1jFGcdGNWDllTKSZN8vCIbTrVSus1
S2LSmZFlEzfkorDGxzhmXTlQDeXB3VhPaBt/F7b1t2NTcaGrM55kr5tsF3VYnrzz
eF+rmPDKNRvCsOfehgvtJRxenuXP7dsoktMj8AZBAD8ccjcYFhToocFqHDx7Lpvp
Mmq+lDK1UfwhR+e62/XW507NrGJT+cA+Ir+sMULgkETLardChzpqFs8BsjDvsby/
ovxOPYUgfTYF4q58RR2064+/5deehBxK1/qCxiO/YtL1/0VjdxQN0izf4/vl+q4p
VXwhoSCMzmNaSBmGYoT50m7jCq2JLTucFhIQ/b2jD05QVMj0v5fDOQ0kuDRiCiGI
3YwW320P+ea6/mFgwGnrJFHzrd1ZO6iQnA5wI7eMJzkBjP9KzDiHhyMvT6+1v7a/
nS9qoJxuFjvCcDV9isl8ZlUL91RtlHBqkL446H5+caw1tRvEJfxjm/XHwoWb
-----END CERTIFICATE-----
subject=C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi server certificate
issuer=C = US, L = Charlotte, O = NetFoundry, OU = ADV-DEV, CN = Ursu14-Focal-Kiwi-intermediate
---
No client certificate CA names sent
Requested Signature Algorithms: RSA-PSS+SHA256:ECDSA+SHA256:Ed25519:RSA-PSS+SHA384:RSA-PSS+SHA512:RSA+SHA256:RSA+SHA384:RSA+SHA512:ECDSA+SHA384:ECDSA+SHA512:RSA+SHA1:ECDSA+SHA1
Shared Requested Signature Algorithms: RSA-PSS+SHA256:ECDSA+SHA256:Ed25519:RSA-PSS+SHA384:RSA-PSS+SHA512:RSA+SHA256:RSA+SHA384:RSA+SHA512:ECDSA+SHA384:ECDSA+SHA512
Peer signing digest: SHA256
Peer signature type: RSA-PSS
Server Temp Key: X25519, 253 bits
---
SSL handshake has read 5449 bytes and written 377 bytes
Verification error: self signed certificate in certificate chain
---
New, TLSv1.3, Cipher is TLS_AES_128_GCM_SHA256
Server public key is 4096 bit
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 19 (self signed certificate in certificate chain)
---
140005049902400:error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate:../ssl/record/rec_layer_s3.c:1543:SSL alert number 42