简体   繁体   English

我应该在哪里存储公钥?

[英]Where should I store the Public Key?

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. 我的Web应用程序具有不断运行的服务,可以将报告发送到ftp服务器,该文件需要使用公钥进行加密。 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? 我是否应该在服务器上手动创建一个文件夹并将其存储在其中?

A public key can be read by anybody, by definition. 根据定义,任何人都可以读取公共密钥。 Therefore it is not a security issue to have it available for everybody. 因此,每个人都可以使用它不是安全问题。

If this key is public you can store it anywhere. 如果此密钥是公共密钥,则可以将其存储在任何地方。 Folder is ok. 文件夹还可以。

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. 那应该位于理想情况下只能由Web应用程序访问的存储中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM