rsa拦截器

rsa拦截器主要处理接口的rsa加密信息解密处理,实现接口自动对参数进行解密。

只对/servlet/功能号接口地址有效

加密密钥配置

rsa的公钥和私钥配置,公钥加密,私钥解密。

在线生成公钥和私钥地址:http://web.chacuo.net/netrsakeypair

wueasy:
  crypt:
    rsa:
      publicKey: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDzlPObayOD1prtJloDYS2YCj/FXlN0PXnxiMjgHHBLWJ18KL58Q/SQCfx0aSFkU4nf5QAZeJDp+0ALzrtIk3Y4fUqSxoRTjOfheSM6e/HS66+97BOhw4iqxyYwoZDMAd4QSi+7sbhBWNYKnJFoWgjazvv1ZoUpzF5Wnh6n+WhPTQIDAQAB
      privateKey: MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAPOU85trI4PWmu0mWgNhLZgKP8VeU3Q9efGIyOAccEtYnXwovnxD9JAJ/HRpIWRTid/lABl4kOn7QAvOu0iTdjh9SpLGhFOM5+F5Izp78dLrr73sE6HDiKrHJjChkMwB3hBKL7uxuEFY1gqckWhaCNrO+/VmhSnMXlaeHqf5aE9NAgMBAAECgYEA8ot9T2MNyDenqUEpHHhlmCGMgpF8dCDLDlFwBIkM4Fnq5zkDBGX+XnczJQ+SKn5sqb8zrCk702FV0uwV3RzI92GkJIsSC+l5l8oQ7Qn3QMuT3pbsvrjI9FmisQyu/2IKfU1Ee6lXQEmqvzVnRUxjS2NhByxPUi9SnNJCFIcOpQECQQD8gwAFLaY0Eh8cFBjtAqtJyBgFPd+adfLRSg2c+Tvlz2SKFHVzGJvhCnxTp5OE8ft5BAkUKsCuGB8WWqA6hTptAkEA9vJfC/kiyNfjaUmyDPO10XqlXXU9s7OVg91NmXUssxDIs8odLjTn7QvZOiVQufjU8ADHYufkQ1uwtHuwZuZcYQJBAOYiOlV92jkgvuunQWRZB2VSENpOHsk2cBvggvGqkLWMw5O4u6YvKnn6RX80fhUvOUJ8tA2GPV8tqr+Dzv4myC0CQQDoRxn33SNG3ypcwqDjZelDXKVmvvyGpwifu+1dxsWAuOzPj/DaoZD1ewuckbTY+KDyDwl8kro2UWxol19ZqpyBAkAwmZru/OA/jG2ZoFJNQwVu+C/GWNP6i3fq5ZFhiDNAPoaIHNAZBtoPkAQsPuBzPSsoDtELG5DtlezF3gFPE3m/

拦截地址配置

  • enabled:是否启用拦截器,默认不启用false
  • rule:规则集合
    • funcNo:功能号配置,多个逗号分隔
    • field:解密字段配置,多个逗号分隔
wueasy:
  gateway:
    interceptor:
      rsa:
        enabled: true
        rule:
        - funcNo: S1002
          field: oldPassword,newPassword,password2
        - funcNo: S1010
          field: newPassword,password2
        - funcNo: S1004
          field: password,password2
Copyright © wueasy.com 2017-2020 all right reserved,powered by Gitbook未经允许,禁止以任何形式传播 修订时间: 2019-11-18

results matching ""

    No results matching ""