Where should I store the Public Key?

拈花ヽ惹草 提交于 2021-02-07 09:00:55

问题


My web application have a continuously running service to send a report to a ftp server, the file need to be encrypted by using a Public Key. Thus my question is where should I store the Public Key? I only have one Public Key so using an advanced Key Store seems to be overkill?

Should I just manually create a folder on the server and store it in there?


回答1:


Storage of the public key (or more likely a certificate containing it) isn't the part that matters. What matters is the location of the private key. That should be located in storage which is ideally only accessible by the web application.




回答2:


A public key can be read by anybody, by definition. Therefore it is not a security issue to have it available for everybody.




回答3:


If this key is public you can store it anywhere. Folder is ok.



来源:https://stackoverflow.com/questions/4202672/where-should-i-store-the-public-key

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