-
Notifications
You must be signed in to change notification settings - Fork 11
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
[Feature Request] Ability to suppress network security popups about invalid certificates #1453
Comments
Though this is not the answer to your request, I am pretty sure that you cannot simply suppress these notifications per default as they are coming directly from Windows itself ("Adobe uses the underlying OS certificate store", https://stackoverflow.com/questions/2187758/ssl-client-side-certificate-authentication-in-adobe-air). We are also encountering this and need to work with own trusted root certificates generated for specfic domains/hosts. Harman would likely have to come up with a custom solution (certificate store) for this - sounds complicated but maybe I'm wrong, so please take my words with a grain of salt on this. EDIT: In the link there is a work-around described. Maybe this helps... |
This might maybe connected to this thread : #1439 |
Actually there's a hack for this problem. One might use the Windows handling capabilities of the Win32 API to always check if the specific window if showing and if yes then get the handle of the button to press and once the handle is acquired you can internally trigger the button with a virtual click and the Window will disappear. I think each OS have their own handling API the task is to find them. I hope this help |
@ajwfrost
Also I will try to check the same using |
@ajwfrost |
@itlancer hi brother,I have a question for you. |
@xiangshun110 that's how it should be used yes; you'd only see that callback if we find the remote server is using a self-signed certificate though. thanks |
@ajwfrost |
|
@ajwfrost But it doesn't work with
Also it doens't work for |
@ajwfrost |
@ajwfrost
|
@ajwfrost |
To summarise the situation here: we still need to fix support for:
On the thanks |
@ajwfrost, exactly. |
@ajwfrost, also should be implemented for
|
@itlancer |
@Mintonist |
@itlancer |
To make the |
What if I don't call event.preventDefault() ? |
The default behaviour is to block the connection if there's an issue with the certificate. So basically:
|
Thanks! I think this is need to be in documentation. |
@ajwfrost Can it be added to flash.net.Socket ? |
@Mintonist it shouldn't be relevant for a normal socket .. it's only when using SSL/TLS that you'd get any certificate error, so a plain/insecure socket or HTTP (rather than HTTPS) connection would not be able to dispatch this. |
Of course! Thanks! |
Can anyone explain. If I use .swc library (AIR51 with SecurityErrorEvent.CERTIFICATE_ERROR) in AIR50 project (without definition of SecurityErrorEvent.CERTIFICATE_ERROR) how it will work? |
I would assume:
|
Thanks! I buy new certificate for my server. It use GlobalSign R6 root certificate. But not very old Android devices (from 2016-2020) don't have it in their certificate storages. So many players see the pop-ups. So I need to do something. |
Yes, this could be true .. sometimes it might be possible to get hold of the underlying URLStream (or similar) objects to attach your own listeners to. I guess the "proper" solution would be to fork the library, make the changes, and then create a pull request to see if they can be adopted in the next release. |
Feature Description
AIR should have ability to suppress network security popups about invalid certificates programmatically.
Right now if something goes wrong with HTTPS SSL certificate checks using
URLLoader
/URLStream
/Loader
/StageWebView
/Socket
/SecureSocket
/NetConnection
- application (OS) just show network security error/popup like these:Such popups cause application "hanging" (sometimes crash) until user choose something. Moreover, for some retail kiosk there could be no user and application just stop working.
That why we need a way to programmatically control it:
SecurityEvent::preventDefault()
or something like that.In such case there shouldn't be any popups.
And application could programmatically allow/block it and show custom visual notification without hanging/crashing.
There are a lot of different reasons of this issue:
You can use https://badssl.com/ to test it.
This feature need for all platforms. May be only iOS have some restrictions about that.
Related links:
https://stackoverflow.com/questions/4072377/how-can-i-bypass-or-detect-ssl-certificate-before-the-message-is-shown-in-adobe
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/security/CertificateStatus.html
Known Workarounds
none
The text was updated successfully, but these errors were encountered: