Windows 证书存储的 Linux 等效项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4267573/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 00:06:57  来源:igfitidea点击:

Linux equivalent for the Windows certificate store

windowslinuxstorecertificate

提问by

Is there any fixed or known location for storing certificates in Linux, something like the Windows certificate store?

在 Linux 中是否有任何固定或已知的位置来存储证书,例如 Windows 证书存储?

Thanks.

谢谢。

采纳答案by Eddie

Yes, for system certificates, use

是的,对于系统证书,请使用

/etc/ssl/certs

AND

/etc/ssl/private (chmod 700)

For user SSH keys use the user's home folder, in a hidden folder named .ssh.

对于用户 SSH 密钥,请使用用户的主文件夹,位于名为 .ssh 的隐藏文件夹中。

/home/user/.ssh

OR

或者

~/.ssh

For webservers like apache, you can override the default location of certificates found in httpd.conf.

对于像 apache 这样的网络服务器,您可以覆盖在 httpd.conf 中找到的证书的默认位置。