cancel
Showing results for 
Search instead for 
Did you mean: 

Afaria and Relay Server connection

Former Member
0 Kudos

How to configure an HTTPS connection between Afaria and Relay Server?

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I changed the Relay Server and Outbound Enabler to 16.0.0.1324.
I now have this error.



Former Member
0 Kudos

In logs on the device I can see:

First connestion:

Samsung Galaxy mini2

Android 4.2.2

Afaria Client 6.60.6398.0

Client Log:

Connecting to HTTPS://xxx.pl:443

Connected to xxx:443

Failed ad 25.03.2014 9:47

Secondary connection:

Samsung Galaxy 2 (GT-I9100)

Android 4.1.2

Afaria Client 6.60.6089.2

Client Log:

Connecting to HTTPS://xxx.pl:443

Connected to xxx:443

Failed ad 3/25/14 9:50:55 AM

Former Member
0 Kudos

Ahh. your client config is not correct. The client needs to have relay server information also. Your Relay <-> Afaria server traffic seems ok.

The client will then connect to connect to something like:

https://xxx.pl:443/ias_relay_server/client/rs_client.dll/YourFarmID/

you can set this up in you server settings in Afaria (remember to select "use relay server" and then provision devices using SSP or enrollment codes.

BR

Peter

Former Member
0 Kudos

I use the enrollment code.
Client configuration is correct.


Afaria client old

Server: https://xxx.pl:443


Relay Server

Farm ID: afaria

Prefix: /ias_relay_server/cl...



Afaria client new


Address

xxx.pl

Port

443

Protocol

https

Farm ID

afaria

URL Prefix

/ias_relay_server/cl...

Former Member
0 Kudos

are both RSOE services running ?

Former Member
0 Kudos

yes.

ROSE is in private LAN.

RS is in DMZ.

It is possible that is fault of the firewall

Former Member
0 Kudos

Yes, but you have listed 2 farms (this requires 2 RSOEs). Please confirm that you have 2 RSOE.exe processes on the Afaria server

Former Member
0 Kudos

I have 2 ROSE's services
1 Afaria Server
2 Enrollment Server

Former Member
0 Kudos

Afaria Server ROSE

-id xxx  -f afaria  -cs "host=127.0.0.1;port=4007;"  -cr "host=111.11.11.11;https=1;port=443;url_suffix=/ias_relay_server/server/rs_server.dll;" -q -o "C:\ROSE\logs\afaria_server.log" -v 5

Relay Server

#-------------------------------------

# Relay server with auto start option

#-------------------------------------

[options]

start = no

verbosity = 5

#--------------------

# Relay server peers

#--------------------

[relay_server]

enable          = yes

host            = 111.11.11.11

https_port      = 443

description     = WROSMRS01 - Relay Server 1 Afaria Wrocław

#---------------

# Backend farms - AFARIA PRODUKCJA

#---------------

[backend_farm]

enable          = yes

id              = afaria

#client_security = on

#backend_security= on

description     = Afaria PRODUKCJA - WROSMAFA01

[backend_farm]

enable          = yes

id              = enrollment-produkcja-farm

#client_security = on

#backend_security= on

description     = Afaria PRODUKCJA - WROSMAFA01

#-----------------

# Backend servers - AFARIA PRODUKCJA

#-----------------

[backend_server]

enable   = yes

farm     = afaria

id       = xxx

#token    = afa.token

[backend_server]

enable   = yes

farm     = enrollment-produkcja-farm

id       = enrollment-produkcja-server

RELAY SERVER

Relay Server is listening on https.

Former Member
0 Kudos

Looks right. Do you get an error or is it working now ?

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can have a look at this document

Regards,

Jitendra

Former Member
0 Kudos

1) Make sure the Relay Server is listening on https. IIS bindings and rs.config

2) Configure your RSOE to connect to the https port of the relay server. https=1;port=443

All set 🙂