Skip to content

Instantly share code, notes, and snippets.

@oltarasenko
Created August 24, 2020 12:51
Show Gist options
  • Save oltarasenko/c2270aed3ee61dc8334797124e8a5cc9 to your computer and use it in GitHub Desktop.
Save oltarasenko/c2270aed3ee61dc8334797124e8a5cc9 to your computer and use it in GitHub Desktop.
- {:bad_cert, :hostname_check_failed}
# 14:42:34 #PID<0.2421.0> :tls_connection.init/1
# :public_key.pkix_verify_hostname({:OTPCertificate, {:OTPTBSCertificate, :v3, 1, {:SignatureAlgorithm, {1, 2, 840, 113549, 1, 1, 11}, :NULL}, {:rdnSequence, [[{:AttributeTypeAndValue, {2, 5, 4, 3}, {:utf8String, "TLSGenSelfSignedtRootCA"}}], [{:AttributeTypeAndValue, {2, 5, 4, 7}, {:utf8String, "$$$$"}}]]}, {:Validity, {:utcTime, '200824121748Z'}, {:utcTime, '300822121748Z'}}, {:rdnSequence, [[{:AttributeTypeAndValue, {2, 5, 4, 3}, {:utf8String, "Olegs-MacBook-Pro.local"}}], [{:AttributeTypeAndValue, {2, 5, 4, 10}, {:utf8String, "server"}}]]}, {:OTPSubjectPublicKeyInfo, {:PublicKeyAlgorithm, {1, 2, 840, 113549, 1, 1, 1}, :NULL}, {:RSAPublicKey, 25486709655316474076753646767195200610076586850994254987565594242766448221943942069841762706618919149033159989017996028984363458414468212282394755490965231574106428020325828854087333938956723307642962597950997009629974443986464219080665540561545073193548723741481282110582424037942440475539023223011072477730156092340789504388299309284799009280805321415686296594840123665835108014311489373749876014381423226804483377261667112277392864439138847870151494203175982092373863435278509983167694028561822598185151161231716089873851551338345668624950430303431984465182724621047534255922168162090584831736264036521681115054583, 65537}}, :asn1_NOVALUE, :asn1_NOVALUE, [{:Extension, {2, 5, 29, 19}, false, {:BasicConstraints, false, :asn1_NOVALUE}}, {:Extension, {2, 5, 29, 15}, false, [:digitalSignature, :keyEncipherment]}, {:Extension, {2, 5, 29, 37}, false, [{1, 3, 6, 1, 5, 5, 7, 3, 1}]}, {:Extension, {2, 5, 29, 17}, false, [dNSName: 'Olegs-MacBook-Pro.local', dNSName: 'Olegs-MacBook-Pro.local', dNSName: 'localhost']}, {:Extension, {2, 5, 29, 14}, false, <<156, 221, 192, 74, 145, 150, 240, 99, 54, 251, 152, 127, 188, 115, 183, 120, 94, 211, 0, 164>>}, {:Extension, {2, 5, 29, 35}, false, {:AuthorityKeyIdentifier, <<161, 119, 143, 150, 74, 211, 8, 217, 85, 61, 122, 116, 250, 96, 234, 235, 57, 137, 22, 210>>, :asn1_NOVALUE, :asn1_NOVALUE}}]}, {:SignatureAlgorithm, {1, 2, 840, 113549, 1, 1, 11}, :NULL}, <<67, 211, 253, 160, 24, 28, 244, 190, 148, 224, 28, 247, 44, 189, 199, 73, 253, 165, 93, 114, 36, 178, 193, 215, 50, 182, 24, 233, 102, 93, 52, 137, 213, 100, 45, 49, 168, 79, 127, 25, 24, 62, 95, 70, 67, 77, 139, 19, 126, 19, 21, 121, 45, 190, 80, 64, 44, 120, 89, 189, 230, 225, 189, 64, 240, 145, 214, 15, 130, 223, 23, 252, 223, 232, 15, 87, 206, 222, 69, 109, 4, 164, 23, 3, 25, 156, 226, 1, 119, 238, 244, 127, 104, 121, 234, 255, 47, 118, 153, 195, 21, 254, 87, 53, 225, 213, 1, 101, 75, 249, 219, 184, 144, 38, 111, 255, 153, 216, 169, 43, 64, 67, 154, 194, 48, 103, 238, 60, 88, 15, 140, 31, 81, 210, 94, 251, 87, 178, 238, 156, 109, 159, 2, 112, 54, 19, 54, 78, 44, 75, 252, 80, 53, 177, 48, 177, 38, 17, 67, 220, 122, 199, 87, 178, 104, 150, 181, 147, 228, 15, 199, 234, 25, 135, 78, 161, 144, 172, 157, 213, 31, 121, 182, 232, 119, 245, 176, 212, 112, 251, 218, 22, 221, 161, 39, 160, 35, 102, 227, 53, 5, 250, 156, 207, 36, 61, 93, 178, 71, 5, 78, 99, 169, 178, 181, 87, 130, 158, 47, 215, 137, 143, 15, 123, 39, 183, 103, 79, 117, 112, 145, 46, 48, 95, 136, 182, 7, 226, 16, 244, 61, 72, 5, 16, 132, 221, 116, 210, 72, 101, 46, 172, 219, 187, 236, 71>>}, [dns_id: '127.0.0.1'], [])
redbug done, timeout - 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment