systemd-creds.md 993 B

systemd-creds

์„œ๋น„์Šค ์ž๊ฒฉ ์ฆ๋ช…์„ ๋‚˜์—ด, ํ‘œ์‹œ, ์•”ํ˜ธํ™” ๋ฐ ๋ณตํ˜ธํ™”. ๋” ๋งŽ์€ ์ •๋ณด: https://www.freedesktop.org/software/systemd/man/systemd-creds.html.

  • ํŒŒ์ผ์„ ์•”ํ˜ธํ™”ํ•˜๊ณ  ํŠน์ • ์ด๋ฆ„ ์„ค์ •:

systemd-creds encrypt --name={{์ด๋ฆ„}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ž…๋ ฅ_ํŒŒ์ผ}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ}}

  • ํŒŒ์ผ์„ ๋‹ค์‹œ ๋ณตํ˜ธํ™”:

systemd-creds decrypt {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ž…๋ ฅ_ํŒŒ์ผ}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ_ํŒŒ์ผ}}

  • stdin์—์„œ ํ…์ŠคํŠธ ์•”ํ˜ธํ™”:

echo -n {{ํ…์ŠคํŠธ}} | systemd-creds encrypt --name={{์ด๋ฆ„}} - {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ}}

  • ํ…์ŠคํŠธ๋ฅผ ์•”ํ˜ธํ™”ํ•˜๊ณ  ์„œ๋น„์Šค ํŒŒ์ผ์— ์ถ”๊ฐ€ (์ž๊ฒฉ ์ฆ๋ช…์€ $CREDENTIALS_DIRECTORY์—์„œ ์‚ฌ์šฉ ๊ฐ€๋Šฅ):

echo -n {{ํ…์ŠคํŠธ}} | systemd-creds encrypt --name={{์ด๋ฆ„}} --pretty - - >> {{์„œ๋น„์Šค}}

  • ์ฃผ์–ด์ง„ ํƒ€์ž„์Šคํƒฌํ”„๊นŒ์ง€ ์œ ํšจํ•œ ์ž๊ฒฉ ์ฆ๋ช… ์ƒ์„ฑ:

systemd-creds encrypt --not-after="{{ํƒ€์ž„์Šคํƒฌํ”„}}" {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ž…๋ ฅ_ํŒŒ์ผ}} {{๊ฒฝ๋กœ/๋Œ€์ƒ/์ถœ๋ ฅ_ํŒŒ์ผ}}