Skip to content

Commit

Permalink
Changes for OTP 26
Browse files Browse the repository at this point in the history
* file:pid2name/1 is removed, update yaws_config:fload functions to pass
  config file name.

* Add OTP 26.0, 26.1, and 26.2 to the test matrix.

* Make websockets_SUITE:secure_socket pass

  OTP changed default ssl verify option in

      commit bb3603db8459e13e9e5f27c4fb46ca59ee8e4a39

      ssl: Change client default verify

  Adding {verify, verify_none} to websockets_SUITE:sslopen/2 makes the
  test pass, which could be ok short term. The better long term option
  is to generate proper TLS data for testing.

* Remove unused sni_not_available test

  The test ssl_sni_SUITE:sni_not_available is failing on OTP-26 and it
  has not been relevant since OTP R7.

* Update ssl/mkcert_altname

  * Update openssl mkcert_altname README and config, use SHA-256
    signature algorithm and 2048 bit keys by defualt.

  * Regenerate certificates and keys alice.sni.example.com-*.pem and
    yaws.sni.example.com-*.pem.

    Used SHA-1 signature algorithm, which OTP ssl doesn't allow anymore.
    This fixes the failing ssl_sni_SUITE tests.

Fixes #467
  • Loading branch information
avtobiff committed Dec 29, 2023
1 parent 5c472e9 commit d4f3f7d
Show file tree
Hide file tree
Showing 11 changed files with 358 additions and 405 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
fail-fast: false
matrix:
otp:
- "26.2"
- "26.1"
- "26.0"
- "25.3"
- "25.2"
- "25.1"
Expand Down
492 changes: 245 additions & 247 deletions src/yaws_config.erl

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ssl/mkcert_altname/README
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Create a new CA using

Create a CSR

# openssl req -new -config ./openssl.cnf -newkey rsa:1024 -nodes -keyout yaws.ppk -out yaws.csr
# openssl req -new -config ./openssl.cnf -newkey rsa:2048 -nodes -keyout yaws.ppk -out yaws.csr

Sign the csr

Expand Down
45 changes: 23 additions & 22 deletions ssl/mkcert_altname/alice.sni.example.com-cert.pem
Original file line number Diff line number Diff line change
@@ -1,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/pcaVn/+uV4
nE8hjC2poRAL1T0tb+mw1XgyhUzM+max9F4pS4WDXmj07b8KWyRwRDianNtP4xqF
ujuHl+4+vhbGoo0/Nssh5l+wOj+F854Z00VnZB0wZKyoO+khOpTTeMamzkKX4YsS
BArFpyNBRlPrHBhV4XdjJ7jXSHZD26JLIEKJJZcu1iDFZF0aVzaHostPYPs2KtLj
wWnVAgMBAAGjcTBvMC0GA1UdEQQmMCSCD3NuaS5leGFtcGxlLmNvbYIRKi5zbmku
ZXhhbXBsZS5jb20wHQYDVR0OBBYEFHezPcv2y4W1UotBNrTOU8j7Sp9nMB8GA1Ud
IwQYMBaAFN3myw9smPNd1YD4GX3V+N+jEAoeMA0GCSqGSIb3DQEBCwUAA4IBAQCy
QvzZtjeNO0JwMq9Gs+U84wOIAXaQMh2wtiX6mXfo3I1J2ScogNeTQpkBYtawKScX
8QqJEW3mkfFexTXzmpW5vtvh9VAYluy3/Tw2F8K0wUCaA1RiODd3kmU1Dbge0r4u
XJJE/zgHjz4HfRBhpODEcWPcYOH6u3nhMDMPRjbWJcLq7u3HfDRrGhUtj3NWLTZ5
OFVmtweZ1pNWiE2IrsG24gmAXsrdaKN2xU0nwkbWWEl1k4im4GlBGwP451yhagAX
vSZJ/8cCTveVRrX+4BMau4HiX+JE+0Cd/VMYqX1szG8rAVYPY3gTJ6H/LkwrUvDl
jnwJATONGg4QGc5psHyf
-----END CERTIFICATE-----
55 changes: 28 additions & 27 deletions ssl/mkcert_altname/alice.sni.example.com-key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAwqNxDljuvx163EK+uePgj72Nnma3MSu3XAameMzTpgd63PM6
xAIaC3nyT5/s+A0xdHGAKhZlyvXhZfwM15EEEJFWd4q/x6jnGkso4XOQ3ecpbyDV
B+MmYygTaZfYsctnPlYuZqHxT67QzKxBL+CEQqcgV4ZvNrmwjKmok26QgWqHK8yi
ySwZXB+YyWLxn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qB2mM
ockFM2HPmdSyglthfjcBIU3FJNFq1ggTZOPuytoXWQKBgQDMLU0Hb/pIHUgBG/AF
8XFpT6hV+lJR8bcOl8zVpRh04+mUvs8S7j7+/+JsKAdNFvQyP0gfk1ZIojx03WF5
e84rew3djrtoDpHidPBhXm3QKaG4cy7nwAAeWaZCz8F+Yb0SparWfmMe1wkkJxmb
bucO2eOm6Xl14n5kRPRYFTkibQKBgQC7OkEs5sCV2v8M+6gkLkie7K0WMbmoPVfX
thnC9PLGMWEJ4UOA5KZc5l749BLrh5vwqNHGvsDz8y8Hjvs5DTWWbknaiLGB5tj9
7oOk9HcclKD+xbRruywPk5NAqpx5IqN0qe1l64bSKzn71G6HjR8MOQMq+Z9rkZm9
oOx105uECQKBgQCcBk4jzdVDgGTCvDeqQvv4ju/Da/u2NPE/TI8x/+x1fqjDiyAw
hjFLqfy7y8bwiQbo0uTphCzeamOqpnXTYOGG5o0M7wKVHPUsSVJcBc4C0Z2MlzCT
1mwAxV9BFQP28PeMJV8sc/6I1ahdoSd3WMNm3OiTZzzy8bbGJs9V9Dnp7QKBgHg2
VCifVGIjhYVxg6kPaqNX9V59uOXz1RX0nx/VJJfqlpLAZxY4OTUG2U3hcNB3dsGT
s3V3fu5jYvvoaxdbit+2mobNI6Pzc7m/Thk4uc3JBIHwsQJG4Ghz6aUopmUEv4yl
mn7JNfx1srol0H4KNzgi1wzdz+VCTEM8MvcIUh75AoGANj2Pn9OqPBAHxYgAHcoj
nxgKVUz86Fshzkn196oilA2RSN38vuCo4H9vvvNnY5hQINED+GgquF4KHz6rS8jQ
Kk8LEF9l+1JzUZzZ1Ksf53bFqEzzm/SwF9xSQpFhNpyRc/3krJNlWFwv/0JCEYWt
92a1BBZdt3PF+tZUincaL+M=
-----END PRIVATE KEY-----
4 changes: 2 additions & 2 deletions ssl/mkcert_altname/openssl.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ cert_opt = ca_default # Certificate field options

default_days = 3650 # how long to certify for
default_crl_days= 30 # how long before next CRL
default_md = sha1 # which md to use.
default_md = sha256 # which md to use.
preserve = no # keep passed DN ordering

# A few difference way of specifying how similar the request should look
Expand Down Expand Up @@ -98,7 +98,7 @@ emailAddress = optional

####################################################################
[ req ]
default_bits = 1024
default_bits = 2048
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
Expand Down
47 changes: 24 additions & 23 deletions ssl/mkcert_altname/yaws.sni.example.com-cert.pem
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIEHjCCAwagAwIBAgIJALteEnfxVLtfMA0GCSqGSIb3DQEBBQUAMIG0MQswCQYD
VQQGEwJTRTEVMBMGA1UECBMMR29uZHdhbmFsYW5kMREwDwYDVQQHEwhZYXdzdG93
bjETMBEGA1UEChMKSHliZXIgSW5jLjEbMBkGA1UECxMSSmFuaXRvcmlhbCBzZWN0
aW9uMR0wGwYDVQQDExR5YXdzLnNuaS5leGFtcGxlLmNvbTEqMCgGCSqGSIb3DQEJ
ARYbbm9ib2R5QG5vd2hlcmUuZ29uZHdhbmFsYW5kMB4XDTE1MDkwMTIwMTUzNVoX
DTI1MDgyOTIwMTUzNVowgbQxCzAJBgNVBAYTAlNFMRUwEwYDVQQIEwxHb25kd2Fu
YWxhbmQxETAPBgNVBAcTCFlhd3N0b3duMRMwEQYDVQQKEwpIeWJlciBJbmMuMRsw
GQYDVQQLExJKYW5pdG9yaWFsIHNlY3Rpb24xHTAbBgNVBAMTFHlhd3Muc25pLmV4
YW1wbGUuY29tMSowKAYJKoZIhvcNAQkBFhtub2JvZHlAbm93aGVyZS5nb25kd2Fu
YWxhbmQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjvvarAiwY3NIP
IkwP34XklSTZCqzceF82kDEq/0BJJQtLPlolaOWUVcEeEIUQNFBdysgFQbN0S8xH
GQjXC0Oz73MV+9Ekd6SYIjZuS+aL/ym7SBE4kGQqnwxqD8/l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HaPXOFrE38W
nPnCNOeSdFvVLA==
-----END CERTIFICATE-----
55 changes: 28 additions & 27 deletions ssl/mkcert_altname/yaws.sni.example.com-key.pem
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAo772qwIsGNzSDyJMD9+F5JUk2Qqs3HhfNpAxKv9ASSULSz5a
JWjllFXBHhCFEDRQXcrIBUGzdEvMRxkI1wtDs+9zFfvRJHekmCI2bkvmi/8pu0gR
OJBkKp8Mag/P5Y/ztiLdh7RaA9aS1rTIzTB70nIpEL1SSyiME/hfB7J+GK8Lee0q
+vMJ+vrsYZ5ferwBGrjDJp61svs52J/uCjU875StgAoSYdSsBmwqYjM9+8gZVXbA
F6R7/MWyUtwRO/vgkMU86n+/cylpcoNbGTl6JFse9RZw5oB44uQ6g9wxWgnODEnt
wbsUMvPe9hmoHj3SGDNQ2bpxUoNhKnndcbslKwIDAQABAoIBAGQrwoLDBW8AR5Dy
jk13lFVN2Ajeuvj0umqKs0l2dUFJ5CrXrhYMocWo4EcgHAbZugBmuQ5eLwYKCKHF
8t57CaPd7C2aq0r/1jUrWNkInbUvF7x2TfKogl6AhfusSKZK9fCKS7Nk5VxLu/CV
D/JWoqkPJYgUCW/pEih1XM08qF84W+zxueuPf9DAjmY59qwyis0xrvwPNMVNzICF
1cfPXQ/7XufwtBN0+GKi9sSRTCLGVVeG5bka8S/J6diwcaFId5G2Xxc/fwY86a6z
0Rpl9zqVlmDvzcGyP0+vEgvVDAeG8Z2j3snAhLm7FvEXyLIRSvw8URpt9AQsAPzl
MutXKoECgYEAzsw1HQ1ZAF2UJEhh9d6U7qyeAZB65ZuvuL2p1pFiftqrekTETxKm
h5iBmXUD86Crm/TGATPX7w7w7WqTS0IZvJuX/Z4zXJ7houiAPt0+yeYSLunC2aVd
s1fEZNmbBkQv4ZO0YC+Iol+eY8z7HSg/JwHoyYYb6DC/5dt5AAIue9sCgYEAyrSH
JnCEYe9V4P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GtnDQONQ7alF/juuNCaIkyi9OR/
9S5trZMuG366jWez4IvOP9B78aTkISL9U1XxlQMdAoGBALflKKVRmzPEewG3hLHV
O4sPiJNUOGY7h9TIzQZ1BnlidAGvPbCenXqS0QOybkqksaQ2iMU+1cTGXxtEdExQ
+PPo/fJ6lp4hUbHPEHYiFxGbrV8bI5rNxjuv5pmEjydLq3VQBYYa0lJ6GI7X+DS1
vv15csGBjqhV03TnYpH0ew+W
-----END PRIVATE KEY-----
10 changes: 1 addition & 9 deletions testsuite/ssl_sni_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ all() ->
sni_strict,
sni_required_on_vhost,
sni_not_enabled,
sni_without_tls,
sni_not_available
sni_without_tls
].

groups() ->
Expand Down Expand Up @@ -62,8 +61,6 @@ init_per_testcase(sni_required_on_vhost, Config) ->
restart_yaws("yaws_sni_required_on_vhost.conf", Config);
init_per_testcase(sni_without_tls, Config) ->
Config;
init_per_testcase(sni_not_available, _Config) ->
{skip, "sni supported on this Erlang/OTP release"};
init_per_testcase(_Test, Config) ->
Config.

Expand Down Expand Up @@ -190,11 +187,6 @@ sni_without_tls(_Config) ->
?assertMatch({error, _}, yaws_config:load(Env)),
ok.

sni_not_available(_Config) ->
Env = #env{debug=false, conf={file, ?tempdir(?MODULE) ++ "/yaws_sni_not_available.conf"}},
?assertMatch({error, _}, yaws_config:load(Env)),
ok.

%%====================================================================
restart_yaws(File, Config)->
YConf = filename:join(?tempdir(?MODULE), File),
Expand Down
46 changes: 0 additions & 46 deletions testsuite/ssl_sni_SUITE_data/templates/yaws_sni_not_available.conf

This file was deleted.

4 changes: 3 additions & 1 deletion testsuite/websockets_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,9 @@ open(Host, Port) ->
gen_tcp:connect(Host, Port, Opts).

sslopen(Host, Port) ->
Opts = [{send_timeout, 2000}, binary, {packet, raw}, {active, false}],
Opts = [{send_timeout, 2000}, binary, {packet, raw}, {active, false},
%% TODO update test to use default verify option (verify_peer)
{verify, verify_none}],
case ssl:connect(Host, Port, Opts) of
{ok, Sock} -> {ok, {ssl, Sock}};
{error, Reason} -> {error, Reason}
Expand Down

0 comments on commit d4f3f7d

Please sign in to comment.