๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

Ruby Development Kit์˜ Rubygem SSL ์ธ์ฆ ๋ฌธ์ œ ๋‹จ์ˆœ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

by ๐Ÿงž‍โ™‚๏ธ 2020. 9. 24.
๋ฐ˜์‘ํ˜•

๊ณตํฌ์˜ SSL ์˜ค๋ฅ˜๋ฅผ ๋˜ ๋งž์ดํ–ˆ๋‹ค. ์ด์ œ๋Š” ์ด ๋ฌธ์ œ ํ•ด๊ฒฐ์˜ ๊ทผ๋ณธ์„ ๊ณ ์น˜๊ณ  ๋‚˜์„œ ์ œ๋Œ€๋กœ ํฌ์ŠคํŒ…์„ ํ•ด์•ผํ•  ๋“ฏ์‹ถ๋‹ค.

gem install ***

๊ณผ ๊ฐ™์€ ๊ตฌ๋ฌธ์„ ์‹คํ–‰ํ•˜์ž ๊ณตํฌ์˜ ์—๋Ÿฌ ๋ฌธ๊ตฌ๋“ค์ด ๋‚˜ํƒ€๋‚ฌ๋‹ค.

ERROR:  SSL verification error at depth 1: self signed certificate in certificate chain (19)
ERROR:  Root certificate is not trusted (/C=KR/O=Somansa/CN=Somansa Root CA)

์ฐธ๊ณ ๋กœ ์—๋Ÿฌ๋ฉ”์‹œ์ง€์˜ Somansa๋Š” ๊ตญ๋‚ด์˜ ๋ณด์•ˆ์—…์ฒด์ธ๋ฐ, ํ˜„ ํšŒ์‚ฌ๊ฐ€ ์ด ์—…์ฒด๋ฅผ ํ†ตํ•ด ์ธ์ฆ์„œ๋ฅผ ๋ฐœ๊ธ‰๋ฐ›์•„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์ด๋‹ค.

Self signed certificate in certificate chain

์ด ๋ฉ”์‹œ์ง€๊ฐ€ ๋ธ”๋กœ๊ทธ ์ƒ์— ํฌ์ŠคํŒ…๋œ ๋ชจ๋“  SSL ๊ด€๋ จ ๋ฌธ์ œ์˜ ๊ทผ๋ณธ ์›์ธ์ด๋‹ค. ๊ทธ๋Ÿผ์—๋„ ํ˜„์žฌ๊นŒ์ง€๋Š” ์šฐํšŒํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ๋งŒ ํ•ด๊ฒฐํ–ˆ๋Š”๋ฐ, ์ด๋ฒˆ ํฌ์ŠคํŒ…๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋‹ค...

ํ•˜์ง€๋งŒ ๋‹ค์Œ๋ฒˆ์—๋Š” ๊ผญ ๊ทผ๋ณธ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•ด์„œ ํฌ์ŠคํŒ… ํ•˜๋Š”๊ฑธ๋กœ.

์ด๋ฒˆ์—๋Š” ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ํ•ด๊ฒฐํ–ˆ๋‹ค. ์œˆ๋„์šฐ ์‚ฌ์šฉ์ž๋ผ๋ฉด C:\Users\{์‚ฌ์šฉ์ž์ด๋ฆ„} ํด๋”๊ฐ€ ์‚ฌ์šฉ์ž ํด๋”์˜ ์ตœ์ƒ๋‹จ์ผ ๊ฒƒ์ด๊ณ  ๋ฆฌ๋ˆ…์Šค ๊ธฐ๋ฐ˜์˜ OS ์‚ฌ์šฉ์ž๋ผ๋ฉด ~/{์‚ฌ์šฉ์ž์ด๋ฆ„} ํ˜น์€ /home/{์‚ฌ์šฉ์ž์ด๋ฆ„} ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์‚ฌ์šฉ์ž ๋””๋ ‰ํ† ๋ฆฌ์˜ ์ตœ์ƒ๋‹จ์ผ ๊ฒƒ์ด๋‹ค.

ํ•ด๋‹น ํด๋”์— .gemrc๋ผ๋Š” ํŒŒ์ผ์„ ์ž‘์„ฑํ•œ๋‹ค. ๊ทธ๋ฆฌ๊ณ  ํ•ด๋‹น ํŒŒ์ผ ์•ˆ์— ๋‹ค์Œ์˜ ๋ฌธ์žฅ์„ ์ž…๋ ฅํ•ด์ฃผ์ž.

:ssl_verify_mode: 0

์ด์ œ ๋‹ค์‹œ ๋งจ ์ฒ˜์Œ์— ์ž…๋ ฅํ–ˆ๋˜ gem install *** ๊ตฌ๋ฌธ์„ ์ž…๋ ฅํ•ด์ฃผ์ž. ๋ฌด์–ธ๊ฐ€ ์ž˜ ์„ค์น˜๋˜๋Š” ๋ชจ์Šต์ด๋‹ค.

Fetching public_suffix-4.0.6.gem
Fetching addressable-2.7.0.gem
...
Successfully installed public_suffix-4.0.6
Successfully installed addressable-2.7.0
...
Parsing documentation for public_suffix-4.0.6
Installing ri documentation for public_suffix-4.0.6
Parsing documentation for addressable-2.7.0
Installing ri documentation for addressable-2.7.0
...
Done installing documentation for public_suffix, addressable,...
26 gems installed
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€