How to connect to a secure metaspace with a remote client connection.

How to connect to a secure metaspace with a remote client connection.

book

Article ID: KB0092953

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Description:
Procedure to connect to a secure metaspace with a remote client connection.

Issue/Introduction

How to connect to a secure metaspace with a remote client connection.

Resolution

Start proxy with a remote_listen address.

Example: 
java -jar as-agent.jar -security_policy "/tmp/testsupport_policy.txt" -metaspace "testsupportSec" -listen "tcp://pcmueller:50000" -name "AS-Seeder"  -remote_listen "tcp://pcmueller:50010"

Create a new token file and use the <remote_listenURL>?remote=true for the metaspace_access parameter and start the remote client using the new token file.

Example:
metaspace_access=metaspace=testsupportSec;discovery=tcp://pcmueller:50010?remote=true

- connect as-admin as remote client
$AS_HOME/bin/as_admin -s "connect security_token '/tmp/mytokenRemote.txt' name 'testsupportSec'  membername 'as-adminRemote'"