.NET8 MAUI trouble with SSL authentication (only happens on Android) #22039
Unanswered
philipkfchan
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When calling SslStream.AuthenticateAsClient(..) while passing in
*.companyname.com
as targetHost, I get the following exception. I'm able to bypass this exception if I modify the targetHost slightly tocompanyname.com
, but this won't be appropriate when we move to production. Does anybody know why the substring*.
is considered to be invalid input, as stated in the exception? Again this only happens when I debug launch in Android and not Windows:[System.err] java.lang.IllegalArgumentException: Invalid input to toASCII: *.companyname.com [System.err] at java.net.IDN.toASCII(IDN.java:115) [System.err] at javax.net.ssl.SNIHostName.(SNIHostName.java:99) [System.err] at crc64fcf28c0e24b4cc31.ButtonHandler_ButtonClickListener.n_onClick(Native Method) [System.err] at crc64fcf28c0e24b4cc31.ButtonHandler_ButtonClickListener.onClick(ButtonHandler_ButtonClickListener.java:31) [System.err] at android.view.View.performClick(View.java:7448) [System.err] at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1211) [System.err] at android.view.View.performClickInternal(View.java:7425) [System.err] at android.view.View.access$3600(View.java:810) [System.err] at android.view.View$PerformClick.run(View.java:28305) [System.err] at android.os.Handler.handleCallback(Handler.java:938) [System.err] at android.os.Handler.dispatchMessage(Handler.java:99) [System.err] at android.os.Looper.loop(Looper.java:223) [System.err] at android.app.ActivityThread.main(ActivityThread.java:7656) [System.err] at java.lang.reflect.Method.invoke(Native Method) [System.err] at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) [System.err] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) [System.err] Caused by: The input does not conform to the STD 3 ASCII rules. line: 0. preContext: . postContext: * [System.err] at android.icu.impl.IDNA2003.convertToASCII(IDNA2003.java:218) [System.err] at android.icu.impl.IDNA2003.convertIDNToASCII(IDNA2003.java:276) [System.err] at android.icu.text.IDNA.convertIDNToASCII(IDNA.java:655) [System.err] at java.net.IDN.toASCII(IDN.java:108) [System.err] ...
Beta Was this translation helpful? Give feedback.
All reactions