The key file can be read and written only by the owner
This commit is contained in:
parent
e886ca9549
commit
34b53e63f2
|
@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
* The key file can be read and written only by the owner
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
1
shellpki
1
shellpki
|
@ -692,6 +692,7 @@ create() {
|
||||||
>/dev/null 2>&1
|
>/dev/null 2>&1
|
||||||
# shellcheck disable=SC2181
|
# shellcheck disable=SC2181
|
||||||
if [ "$?" -eq 0 ]; then
|
if [ "$?" -eq 0 ]; then
|
||||||
|
chmod 600 "${key_file}"
|
||||||
echo "The KEY file is available at \`${key_file}'"
|
echo "The KEY file is available at \`${key_file}'"
|
||||||
else
|
else
|
||||||
error "Error generating the private key"
|
error "Error generating the private key"
|
||||||
|
|
Loading…
Reference in a new issue