Difference between revisions of "Using secured connections"

From i2Rest
Jump to: navigation, search
Line 1: Line 1:
 
i2Rest Server uses standard [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apis/unix9a.htm IBM i GSK API] to protect connections. All required parameters are configured using DCM, see [[I2Rest_secured_gate|detailed guide]].<br>
 
i2Rest Server uses standard [https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_71/apis/unix9a.htm IBM i GSK API] to protect connections. All required parameters are configured using DCM, see [[I2Rest_secured_gate|detailed guide]].<br>
[[I2Rest_quick_config|Basic configuration]] SSL secured variant(differences are highlighted in <span style="color:blue;">blue</span>):
+
[[I2Rest_quick_config|Basic configuration]] SSL secured variant(differences are highlighted in <span style="background:blue;">blue</span>):
 
  {
 
  {
 
     "gates":
 
     "gates":
 
     {
 
     {
       "main"      : {"url":"https://<span style="background:blue;"><host_name>[:port](for example api.i2rest.com:1234), "dcm_server_id":"MYSERVER" </span>"},
+
       "main"      : {"url":"https://<span style="background:#00FFFF;color:red;"><host_name>[:port](for example api.i2rest.com:1234), "dcm_server_id":<span style="color:red;">dcm_server_id'</span>"" </span>"},
 
       "management" : {"url":"http://<span style="color:red;"><host_name>[:port] (for example api.i2rest.com:4321)</span>"}
 
       "management" : {"url":"http://<span style="color:red;"><host_name>[:port] (for example api.i2rest.com:4321)</span>"}
 
     },
 
     },
Line 16: Line 16:
 
                                     '-url' '${surl}'    \
 
                                     '-url' '${surl}'    \
 
                                     '-uid' '${uid}'    \
 
                                     '-uid' '${uid}'    \
          <span style="color:blue;">'-dcm_client_id' 'MYCLIENT'</span> \                    \
+
  <span style="background:#00FFFF;> '-dcm_client_id' '<span style="color:red;">'-dcm_client_id'</span></span> \
 
                                     '-user' '${user}')) \
 
                                     '-user' '${user}')) \
 
                             INLLIBL(I2REST)"
 
                             INLLIBL(I2REST)"

Revision as of 13:11, 29 June 2020

i2Rest Server uses standard IBM i GSK API to protect connections. All required parameters are configured using DCM, see detailed guide.
Basic configuration SSL secured variant(differences are highlighted in blue):

{
   "gates":
   {
      "main"       : {"url":"https://<host_name>[:port](for example api.i2rest.com:1234), "dcm_server_id":dcm_server_id'"" "},
      "management" : {"url":"http://<host_name>[:port] (for example api.i2rest.com:4321)"}
   },
   "session_systems":
   [
      {  "name"   : "*ANONYMOUS", 
         "submit" : "SBMJOB JOB(I2RESTA)                \
                            USER(${user})               \
                            CMD(CALL I2REST             \
                               PARM('-session'          \
                                    '-url' '${surl}'    \
                                    '-uid' '${uid}'     \
   '-dcm_client_id' ''-dcm_client_id' \
                                    '-user' '${user}')) \
                            INLLIBL(I2REST)"
      }
   ],
   "pcmls":
   [
      {
         "pcml_mount"         : "echo",
         "pcml_file"          : "<complete name of i2restecho.pcml on IFS (for example /tmp/PCML/i2restecho.pcml)>", 
         "valid_in_anonymous" : true
      }
   ]
}