Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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?

like image 347
Leo Avatar asked Dec 04 '22 10:12

Leo


2 Answers

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

like image 141
yeyeyerman Avatar answered Dec 16 '22 04:12

yeyeyerman


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.

like image 36
Yuliy Avatar answered Dec 16 '22 03:12

Yuliy