-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tls 1.2 fix #187
Tls 1.2 fix #187
Conversation
…braco 7 to use BLob Storage using TLS 1.2
Hi @binraider If you have the https://our.umbraco.com/packages/developer-tools/codesharetls12umbraco/ package installed or your set 1.2 in your own code then this change shouldn't be needed? |
I did install that code into an event handler on 16 sites last week, but when i pushed one of them into a slot and switched the Blob storage to TLS 1.2 on that site i got azure connection errors. (Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (400) Bad Request.) Adding the declaration into the AzureFileSystem constructor cured the problem. |
Hmm, something else may have changed it back, most recent wins. |
Hi Jeavon, does that mean you will add the declaration then? If that turns out to be the case will there be an updated package as well? |
What event did you use? |
The one in Pauls blog post:
I added this class to every websites Lib project in the EventHandlers folder |
That should do it, anything else installed that might be resetting the version? I would need to test on a v7 site and see what happens. |
There are no other references to the ServicePointManager in my test project (test branch of a client project). The project that i have been locally swapping out various edited versions of the UmbracoFileSystemProviders.Azure dll is 7.13.2, but i try to stay as close to stock as possible. |
I'll have a test tomorrow and let you know. |
Thanks |
Is there any movement on this? |
Hi there ✋ any updates on this? I got hit by this today while migrating a v7.15.7 site. The temp fix was to change the storage account minimum TLS version to 1.0 as suggested by Chris here https://our.umbraco.com/forum/using-umbraco-and-getting-started/94221-image-processor-400-error not ideal but at least is working. Update: I decided to install https://our.umbraco.com/packages/developer-tools/codesharetls12umbraco/ and change back the storage account TLS version to 1.2 and it seems to work. |
Hi, running into the same issue, installed [https://our.umbraco.com/packages/developer-tools/codesharetls12umbraco/] to no avail. Also tried manually overriding the ApplicationEventHandler events but seems the I get the (400) Bad Request before they are triggered. |
I'm running into the same issue. I have multiple v7 sites on UC using UmbracoFileSystemProviders.Azure-v1.1.1 to access AzureBlobStorage accounts. I have enabled TLS-1.2 on the sites using Paul Seal's example code, but when I enable min-TLS-1.2 on the AzureBlobStorage accounts, I get bad-request errors - resulting in a total no-go for the site - and the only fix is to drop the min-TLS on the AzureBlobStorage accounts to 1.0 - which is obviously hitting a hard-limit with Microsoft's EOL on TLS 1.0/1.1 |
FWIW - I have TLS-1.2 support enabled in ApplicationStarting but that didn't enable TLS-1.2 request from this provider, so I downloaded and compiled the project locally with this PR included, and it fixes the TLS-1.2 request issue. |
For anyone who is seeing this issue could you please confirm which .net framework your project is targeting? |
I added SecurityProtocol declaration in the AzureFileSystem constructor so that we can use the V1 version with Blob Storage with TLS 1.2