Can Microgateway set rejectUnauthorized to false for specific target hosts?

ericschult
Participant II

I'm testing microgateway on the same host as my service. Connecting to 'localhost' fails because i have a certificate that isn't named 'localhost'

I tried to disable the ssl checks with:

edgemicro_config:
  ...
edgemicro:
  ...
targets:
  - host: localhost
    ssl:
      client:
        rejectUnauthorized: false
  - host: localhost:8443
    ssl:
      client:
        rejectUnauthorized: false
Is this not supported, or am i just not specifying the right settings in my edgemicro.yaml?
0 2 311
2 REPLIES 2

Former Community Member
Not applicable

It is possible for per host. Here is the doc: https://docs.apigee.com/api-platform/microgateway/2.5.x/operation-and-configuration-reference-edge-m...

Here is an example:

edgemicro:
  targets:
     - host: 'myserver.example.com'
       tls:
         client:
           pfx: /Users/myname/twowayssl/ssl/client.pfx
           passphrase: admin123
           rejectUnauthorized: false

Hi @srinandans, how about for one way ssl?

Thanks in advance.