1

We have a javascript file hosted on GitHub that I'd like to fetch:

enter image description here

Error logs:

172416  cli error   320673          0x81000224  === Line 2: copy -f https://raw.githubusercontent.com/mmxxxxx/abc/master/shim_mpgw_mapping.js store:///js/shim_mpgw_mapping.js
172416  audit   error   320673          0x82400020  (admin:default:web-gui:10.106.170.13): (config)# copy -f https://raw.githubusercontent.com/mm58169/datapower7/master/shim_mpgw_mapping.js store:///js/shim_mpgw_mapping.js
172416  audit   error   320673          0x8240002e  (admin:default:*:*): Copying file "https://raw.githubusercontent.com/mm58169/datapower7/master/shim_mpgw_mapping.js" to "store:///js/shim_mpgw_mapping.js" failed
172416  cli error   320673          0x810002e7  File copy failed - destination URL could not be opened: store:///js/shim_mpgw_mapping.js
172416  file    error   320673          0x8100015c  Copying file "https://raw.githubusercontent.com/mm58169/datapower7/master/shim_mpgw_mapping.js" to "store:///js/shim_mpgw_mapping.js" : failed
172416  system  warning 320673          0x8040000a  destination URL could not be opened: store:///js/shim_mpgw_mapping.js
172416  network error   31711           0x80e0005a  Cannot establish SSL credentials (credential is NULL), URL: 'https://raw.githubusercontent.com/mm58169/datapower7/master/shim_mpgw_mapping.js'.
172416  network warning 31711           0x80e00058  SSL connection to 'https://raw.githubusercontent.com/mm58169/datapower7/master/shim_mpgw_mapping.js' failed, unable to get SSL Profile ''
172416  network warning 31711           0x80e00058  SSL connection to 'https://raw.githubusercontent.com/mm58169/datapower7/master/shim_mpgw_mapping.js' failed, unable to get SSL Profile ''
Lightbeard
  • 4,011
  • 10
  • 49
  • 59

2 Answers2

2

@VonC is correct that you need a SSL Client Profile. You need to add it into the User Agent of your service: enter image description here

The Fetch action will download the file to your DataPower local:/// filesystem so you might as well download it manually and upload it to the DataPower instance though...

Anders
  • 3,198
  • 1
  • 20
  • 43
0

This should be related to TLS selection, like the DataPower service configuration variable called var://service/tls-info, or serviceVars.tlsInfo, which might not be properly set.

You would have then to define an SSL client profile (which secures connections between the DataPower Gateway and its targets)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250