Certbot: raspbian์—์„œ "์š”์ฒญํ•œ ์•„ํŒŒ์น˜ ํ”Œ๋Ÿฌ๊ทธ์ธ์ด ์„ค์น˜๋˜์ง€ ์•Š์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค"

์— ๋งŒ๋“  2016๋…„ 12์›” 05์ผ  ยท  17์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: certbot/certbot

raspbian์—์„œ certbot ๋ฅผ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค.

์„ค์น˜์— ์„ฑ๊ณตํ–ˆ๊ณ  libaugeas0 ๋ฐ augeas-lenses

apache2 ๋‘˜ ์ค‘ ํ•˜๋‚˜๊ฐ€ ์„ค์น˜๋˜๊ณ  SSL์ด ํ™œ์„ฑํ™”๋ฉ๋‹ˆ๋‹ค.

๊ทธ๋Ÿฌ๋‚˜ sudo certbot --apache ๋ช…๋ น์„ ์‹คํ–‰ํ•˜๋ฉด ๋‹ค์Œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

The requested apache plugin does not appear to be installed

์–ด๋–ป๊ฒŒ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

apache more-info

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์‹œ๋„: sudo apt-get install python-certbot-apache :)

๋ชจ๋“  17 ๋Œ“๊ธ€

๋‘ ๊ฐ€์ง€ ์งˆ๋ฌธ: (1) certbot์„ ์–ด๋–ป๊ฒŒ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๊นŒ? (2) /var/log/letsencrypt/letsencrypt.log ์˜ ์ „์ฒด ๋กœ๊ทธ๋ฅผ ๊ฒŒ์‹œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

๋ฌผ๋ก  ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค!

  1. apt๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ certbot์„ ์„ค์น˜ํ–ˆ์Šต๋‹ˆ๋‹ค.
>sudo apt-get install certbot -t stretch
>sudo certbot --apache
The requested apache plugin does not appear to be installed
>sudo apt-get install libaugeas0
The requested apache plugin does not appear to be installed
  1. ๋‹ค์Œ์€ ๋กœ๊ทธ ํŒŒ์ผ์˜ ๋‚ด์šฉ์ž…๋‹ˆ๋‹ค.
>sudo more /var/log/letsencrypt/letsencrypt.log.1
2016-12-06 00:12:46,080:DEBUG:certbot.main:Root logging level set at 20
2016-12-06 00:12:46,107:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2016-12-06 00:12:46,224:DEBUG:certbot.main:certbot version: 0.9.3
2016-12-06 00:12:46,226:DEBUG:certbot.main:Arguments: ['--apache']
2016-12-06 00:12:46,251:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryP
oint#manual,PluginEntryPoint#standalone)
2016-12-06 00:12:46,311:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2016-12-06 00:12:46,315:DEBUG:certbot.plugins.selection:No candidate plugin
2016-12-06 00:12:46,317:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

์‹œ๋„: sudo apt-get install python-certbot-apache :)

๋‚˜๋Š” ์‹œ๋„ํ–ˆ๋‹ค:

>sudo apt-get install python-certbot-apache
Package python-certbot-apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-certbot-apache' has no installation candidate

๊ทธ๋ž˜์„œ ํŒจํ‚ค์ง€์˜ ์ด์ „ ์ด๋ฆ„์„ ์‹œ๋„ํ–ˆ์Šต๋‹ˆ๋‹ค.

>sudo apt-get install python-letsencrypt-apache
Package python-letsencrypt-apache is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  python-certbot-apache

E: Package 'python-letsencrypt-apache' has no installation candidate

python-certbot-apache ๊ฐ€ ์•„๋‹Œ ๊ฒฝ์šฐ raspbian์—์„œ certbot ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๊นŒ?

raspbian stretch์—์„œ ์„ค์น˜๋œ certbot๊ณผ ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ์ผํ–ˆ์Šต๋‹ˆ๋‹ค.

sudo apt-get install python-letsencrypt-apache

์ด ๊ฒŒ์‹œ๋ฌผ ๋•๋ถ„์— ๋‚ด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ข‹์€ ๋ฌผ๊ฑด.

Fedora 26์—์„œ ๋น„์Šทํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค. certbot-apache ๋ฅผ ์„ค์น˜ํ–ˆ๋Š”๋ฐ python-letsencrypt-apache ์„ค์น˜๋ฅผ ์‹œ๋„ํ–ˆ์ง€๋งŒ ์‹คํŒจํ–ˆ์Šต๋‹ˆ๋‹ค. python-certbot-apache ์„ค์น˜๋ฅผ ์‹œ๋„ํ–ˆ์ง€๋งŒ ์ด๋ฏธ ์„ค์น˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋‚ด /var/log/letsencrypt/letsencrypt.log ์˜ ๋‚ด์šฉ์€ ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค.
2017-10-08 09:52:18,310:DEBUG:certbot.main:certbot version: 0.18.2 2017-10-08 09:52:18,311:DEBUG:certbot.main:Arguments: ['--apache'] 2017-10-08 09:52:18,312:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) 2017-10-08 09:52:18,331:DEBUG:certbot.log:Root logging level set at 20 2017-10-08 09:52:18,332:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log 2017-10-08 09:52:18,333:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache 2017-10-08 09:52:18,333:DEBUG:certbot.plugins.selection:No candidate plugin 2017-10-08 09:52:18,333:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None

@SethGower , ๊ท€ํ•˜์˜ ๋ฌธ์ œ๋Š” ๋ฒ„๊ทธ ์—…์ŠคํŠธ๋ฆผ ์— ์ฐฌ์„ฑํ•˜์—ฌ ๋‹ซ์€ #5132์˜ ์ค‘๋ณต์ž…๋‹ˆ๋‹ค. ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋ ค๋ฉด ๋‹ค์Œ ์ค‘ ํ•˜๋‚˜๋ฅผ ์ˆ˜ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

  1. ์‹คํ–‰ ๊ฐ€๋Šฅํ•œ "certbot-2"๋ฅผ ์‚ฌ์šฉํ•˜์‹ญ์‹œ์˜ค.
  2. dnf install python3-certbot-nginx ํ•ฉ๋‹ˆ๋‹ค.

@andig ์†”๋ฃจ์…˜์€ ์ €์—๊ฒŒ ์ž˜ ์ž‘๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ์™œ ์ฒ˜์Œ์—๋Š” letsencrypt๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์ธ์ฆ์„œ๋ฅผ ์ƒ์„ฑํ•˜๊ณ  ๊ฐฑ์‹ ์— ์‹คํŒจํ–ˆ๋Š”์ง€ ์ž˜ ๋ชจ๋ฅด๊ฒ ์ง€๋งŒ ํ•ด๋‹น ํŒจํ‚ค์ง€๋กœ ๋ชจ๋“  ๊ฒƒ์ด ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. .๊ฐ์‚ฌ ํ•ด์š”!

์ด๊ฒƒ์€ pip ์‚ฌ์šฉํ•˜์—ฌ AWS EC2 ์ธ์Šคํ„ด์Šค์—์„œ ์ €์—๊ฒŒ ํšจ๊ณผ์ ์ด์—ˆ์Šต๋‹ˆ๋‹ค.

$ sudo -H pip install certbot-apache

์ด๋Ÿฐ ๊ฒฝ์šฐ์—, ๋‚˜๋Š” ์„ค์น˜ certbot ์‚ฌ์šฉ pip ๋„

yum install certbot์„ ์‚ฌ์šฉํ•œ ํ›„ ๋™์ผํ•œ ์˜ค๋ฅ˜๋กœ ์—ฌ๊ธฐ์—์„œ ๋๋‚ฌ์Šต๋‹ˆ๋‹ค. ๋ณ„๋„๋กœ yum install certbot-apache๋ฅผ ์ˆ˜ํ–‰ํ•˜๊ณ  ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•ด์•ผ ํ–ˆ์Šต๋‹ˆ๋‹ค.

๋‚˜๋Š” ๋‹ฌ๋ ค์•ผ ํ–ˆ๋‹ค

apt-get install python3-certbot python3-certbot-apache -t stretch

MacPorts(HomeBrew ๋Œ€์‹ )์˜ ๋„์›€์œผ๋กœ Mac OS X ์„œ๋ฒ„(El Capitan)์— certbot์„ ์„ค์น˜ํ•˜๋ ค๊ณ  ์‹œ๋„ํ•˜๋Š” ๋™์•ˆ sudo certbot --apache ์‹คํ–‰ํ•˜๋ ค๋ฉด ์ด ๋ช…๋ น์ด ํ•„์š”ํ–ˆ์Šต๋‹ˆ๋‹ค.
sudo port install certbot-apache .
์œ„์˜ ๊ธ€์„ ์ฐธ๊ณ ํ•˜์—ฌ ์ถ”๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

๋‚˜๋Š” ๋‹ฌ๋ ค์•ผ ํ–ˆ๋‹ค

apt-get install python3-certbot python3-certbot-apache -t stretch

python3-certbot-apache๋ฅผ ์„ค์น˜ํ•˜๋ฉด Fedora 28์—์„œ ์ด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ €๋Š” yum์„ ์‚ฌ์šฉํ–ˆ์Šต๋‹ˆ๋‹ค.

์ œ ๊ฒฝ์šฐ์—๋Š” "etc/apache2/sites-enabled/....conf"์˜ ๊ฐ€์ƒ ํ˜ธ์ŠคํŠธ์— ๋„๋ฉ”์ธ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค.

๊ธฐ๋ก์„ ์œ„ํ•ด ํ•ด๋‹น ๋ฐ๋น„์•ˆ ๋ฌธ์ œ: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932444

์ด๊ฒƒ์€ ๋‚˜๋ฅผ ์œ„ํ•ด ๊ทธ๊ฒƒ์„ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค.
"apt-get ์„ค์น˜ certbot"
certbot-apache ์„ค์น˜ ํ›„ certbot์„ ๋ณ„๋„๋กœ ์„ค์น˜ํ•ด์•ผ ํ–ˆ์Šต๋‹ˆ๋‹ค.

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰