Firebase cloud functions/ hosting ssl pinning

混江龙づ霸主 提交于 2021-02-20 04:24:45

问题


My payment gateway requires ssl certificate pinning for their payment gateway endpoint on my side.

Does Firebase support ssl pinning for cloud functions/hosting?

I can't find this information in the official documentation or anywhere else on the net.

Details published in the bank's technical requirements form:

  1. Response URL and Port Number
    Specify the Response URL and Port Number for us to send you payment notification.
  2. SSL Certificate:
    (To establish secure connection with your Response URL.)
    The standard SSL certificate authority are Comodo or Versign.
    Please upload the SSL Certificates for both environments that associate with the UAT and Production URL respectively. SSL certificates can be in format of .cer or .crt or you may zip it in one zip file. Note: Payment notification will fail to reach you if you provide incorrect SSL Certificate.

回答1:


What is described here is a really strange requirement -- it sounds like they're telling you you have to provide them with the specific SSL certificate your site is running.

This is unrealistic for nearly all cases as SSL certificates expire after a year, and particularly unrealistic for Firebase Hosting where certificates only last for three months.

You should be able to download the certificate for your Firebase Hosting site (see e.g. this ServerFault question) and upload it to your bank, but the certificate is going to change approximately every two months.

I'd reach out to your bank and ask them more about this requirement, as it seems bizarre and unduly burdensome. Perhaps they are merely trying to ask for the root certificate in the trust chain? If that's the case, you can provide the Let's Encrypt root certificate and it should be fine for the time being (note: Firebase Hosting does not make a promise of keeping the same certificate authority indefinitely).



来源:https://stackoverflow.com/questions/47083773/firebase-cloud-functions-hosting-ssl-pinning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!