how can i load httpS from localhost via wifi

hi guys, there is a problem:

  • thanks to signallingwebserver & mkcert for ssl
  • i can open the same address in the windows app (or in standalone game mobile from the editor)

  • i can open any site like https://example.com with webbrowser widget in the app on android if there is “true” for “UseHTTPS” in config.json

but i can’t open the same https local address in the webbrowser widget in the app on android via the same setup - there is just a black screen in the widget like it’s can’t get a connection

  • unchecking “Verify Peer” under Libcurl has no effect

  • there is also no problem with http when android:usesCleartextTraffic=“true” in the project settings

so… is there some restriction for ue’s mobile apps for android due “local addresses”, can you please help me to figure out what exactly i need to fix?

  • do i need some rule in the androidmanifest.xml to place ssl .pem files somewhere in the project folder (like for signallingwebserver) or just maybe “inject” a content of the .pem in Epic Games\UE_5.3\Engine\Content\Certificates\ThirdParty\cacert.pem ? // looks like it’s not working this way

well, i’ve tried network_security_config.xml with

<pin-set>
	<pin digest="SHA-256">fingerprint_for_the_certificate_from_the_crome_browser</pin>
</pin-set>

app is crashing. although fingerprint from his example works. just wrong domain which incompatible with custom .pem of my local ip. such a weird situation i can’t find a proper manual for this case

works with tag trust-anchors to cert.pem in the network_security_config.xml + adding raw to android for cert.pem in build.cs

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.