Securely store p12 file in rails

自作多情 提交于 2019-12-10 14:47:01

问题


How do I securely store my p12 file in rails? My production web app will be in Heroku. The file is used to sign some documents dynamically.


回答1:


Storing the p12 contents in an environment variable should be sufficiently secure on Heroku. This way it's at least not available in your code base or through your database.

You can setup Heroku environment variables like this:

heroku config:add P12_CONTENTS="$(cat /path/to/file.p12)"


来源:https://stackoverflow.com/questions/12929065/securely-store-p12-file-in-rails

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