forked from bippio/go-impala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The switch from the deprecated NewTBinaryProtocol to the recommended replacement NewTBinaryProtocolConf had an unintended side-effect - TLS configuration was propagated from the protocol to the transport, erasing the previously configured RootCAPool. This PR fixes that and extends integration tests to cover TLS. Closes #9
- Loading branch information
Showing
7 changed files
with
146 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIFGzCCAwOgAwIBAgIUAahWdKX/OerjdaZlvpBbH/aMTdswDQYJKoZIhvcNAQEL | ||
BQAwEjEQMA4GA1UEAwwHbXVyZmZmaTAeFw0yNTAxMTkxMjUwNTNaFw0zNTAxMTcx | ||
MjUwNTNaMBIxEDAOBgNVBAMMB211cmZmZmkwggIiMA0GCSqGSIb3DQEBAQUAA4IC | ||
DwAwggIKAoICAQC8b+sRlY7tSXAKhhIs+qFpAnKjjsGH6HUP0iBNLR3x3/dfe2Do | ||
KnGwRWpPcX8cu/2+/izwy0APsMVlfWZ/5L3BJTLxTjogw19ZaEYy9ZSwwEGflMQV | ||
E3u8pxSJaRCRxOKhkk+fG4RKkU/5dI3QdAWwXn03mqZlplqZ6Oh96hyPARtcMS3i | ||
68D+lHdk3QUE27eaeMkuakcUJRVkWRZ0LHJEXlzL81lTULDxLDnLlxUfuPvxuGcF | ||
/PGyjiR6dH80uqYEmeb8V0RyPxbYEplDf2/3xpUgFnatiBXlLvH71k/t/1Q4A1yF | ||
IHwSVD62hpjfA9xavLjjnYJ1w1SzClbo9eq3dm14vSqIxgyxCILeUv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9AHXhD6ejMynUX2nQkUct/XPYqneO | ||
d9HYE7W038CYL8FxeyuFkJH4jcyAZwzXaqqCJnLyWeHxlUjQP4o2DyIr/xz4mrSP | ||
zHi2ICVplrlMsKMg9e7OsbFWHt/d+3YQy7AIifjtoydzVEAvZ+J1p0tOcOoclZPM | ||
YZudhFMVY9Q8wEx8iCtv | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
authorityKeyIdentifier=keyid,issuer | ||
basicConstraints=CA:FALSE | ||
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment | ||
subjectAltName = @alt_names | ||
|
||
[alt_names] | ||
DNS.1 = localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQC8b+sRlY7tSXAK | ||
hhIs+qFpAnKjjsGH6HUP0iBNLR3x3/dfe2DoKnGwRWpPcX8cu/2+/izwy0APsMVl | ||
fWZ/5L3BJTLxTjogw19ZaEYy9ZSwwEGflMQVE3u8pxSJaRCRxOKhkk+fG4RKkU/5 | ||
dI3QdAWwXn03mqZlplqZ6Oh96hyPARtcMS3i68D+lHdk3QUE27eaeMkuakcUJRVk | ||
WRZ0LHJEXlzL81lTULDxLDnLlxUfuPvxuGcF/PGyjiR6dH80uqYEmeb8V0RyPxbY | ||
EplDf2/3xpUgFnatiBXlLvH71k/t/1Q4A1yFIHwSVD62hpjfA9xavLjjnYJ1w1Sz | ||
Clbo9eq3dm14vSqIxgyxCILeUvxs8b7K9lh2lEGfsiTTtu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uZRpgedmciR7hAoIBAEmQQlRwpibnG2W/ay4p | ||
UfR3ViVbcEeoicA5sYNKlP8Rff4ytNNpVhrEcIGh4JCyB26uDsPBOxU598OXAmhL | ||
p8WYteVSJCJwbDVlf+mNipVFzNqsQEniIJYsPcpQg5yGdwbUFR1RCR4tpW9JtI4w | ||
AxWTpmhIgPc+k4hLIGrI9m5zcvHRRaa5JG4o35H+/nNSeX+qGl1VKxAjhPHSoqld | ||
suo0h5TIMgYc6NqWZRHh+NZeRIbOlK6TLSzaCYBRn9T1kUnPnyjJCG04R5G1nIKw | ||
OE0wdNxbgplGQlYpJbsf4E+3DTUDp1TixET7PJLW1Z4U7QtdzOwCc1rKvTqlzbkN | ||
fDUCggEATJSwO0dkvhxBrO86YSVY4wxboSacaOWrQNuFeiD7pZcWFvki6W3LUUOl | ||
hykOcsL+Dwbc7auVdhjHK49jpa4lNB/1rhuAn9oD5S9hBG+Zfl6rs8jyqIQszm51 | ||
5b2BtPIt/YJY5YOtihluS2XVEqE4uVisFAcJ4ikG02W/OXUmY9SvEzwA3MH37yES | ||
oJmG6kvf11AH/9Pc4QMCDhvHsD0JfZ+I/ZCJmmQ1aumUu8xgnllgwHGemqVdUJBL | ||
fN5eobJRcgnDnWMUiUAy2YQiUQ5x/0E0Z7IVEzT6YbHGJAIE3wR40Vivr4f/nTAF | ||
takD7d5PmjrHQ14SgwhskL32WUtJUQ== | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
rm -- *.key *.crt *.csr | ||
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout localhost.key -out localhost.crt -subj "/CN=murfffi" -addext "subjectAltName=DNS:localhost" | ||
|
||
#with CA cart: | ||
#openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout ca.key -out ca.crt -subj "/CN=murfffi" | ||
#openssl req -new -newkey rsa:4096 -sha256 -nodes -keyout localhost.key -out localhost.csr -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost" | ||
#openssl x509 -req -in localhost.csr -CA ca.crt -CAkey ca.key \ | ||
# -CAcreateserial -out localhost.crt -days 825 -sha256 -extfile localhost.ext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters