• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

urlloader and localhost in https

Advisor ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

Hi folks,

is there any way to make actionscript to accept a self signed certificate

when urlLloader requests to a local server (so on the client side)?

thanks

TOPICS
ActionScript

Views

1.9K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Sep 29, 2018 Sep 29, 2018

yes, I read it, and apparently flash is dependent from the browser CA authority.

So the only way is to tell the client to install the CA root first to be able to communicate successfully.

Votes

Translate

Translate
Community Expert ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

are you creating an air app?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

No, embedded swf in website page

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

there should be restrictions on your swf's access to the user's computer any work-around would be a security issue.

what are you trying to do?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

ok so the only solution is to let the user download the cert and install it on his browser?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

what are you trying to do?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

the client has its own web server in localhost only. and would like my swf

access to his web server in https since the swf is also loaded in https

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

you should be able to use a cross-domain policy.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

I already have on the doc root of the client web server (which is only accessible from the localhost)

<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

        <site-control permitted-cross-domain-policies="all"/>

        <allow-http-request-headers-from domain="*" headers="*" secure="false"/>

        <allow-access-from domain="*" secure="false"/>

</cross-domain-policy>

should I remove any restriction on the swf side?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 28, 2018 Sep 28, 2018

Copy link to clipboard

Copied

ok now http works well, but https connection returns from the server

Connection from 127.0.0.1:27376.

getpeername failed: Transport endpoint is not connected QUITTING

on the swf side:

onSecurityStatus error: Error #2048

does it need a specific certificate?

btw the connection is done with https://127.0.0.1:59999/index.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 29, 2018 Sep 29, 2018

Copy link to clipboard

Copied

you'll need to allow connection from your secure domain.  i've not done that before so you'll need to check the documentation for an explanation.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 29, 2018 Sep 29, 2018

Copy link to clipboard

Copied

LATEST

yes, I read it, and apparently flash is dependent from the browser CA authority.

So the only way is to tell the client to install the CA root first to be able to communicate successfully.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines