openssl 인증서 만들기 쉘스크립트 도움 구합니다.

radius의 이미지

인증서를 만들기 위해 다음과 같은 스크립트를 실행했습니다.
경로설정이 잘못된거 같은데 어디가 문제인지 모르겠습니다.

실행한 경로 /etc/1x/keys/cert : 여기에 기존 인증서들이 모여있습니다.

>. cert-script --- 실행

#!/bin/sh 
SSL=/usr/local/openssl 
export PATH=${SSL}/bin/:${SSL}/ssl/misc:${PATH}.
export LD_LIBRARY_PATH=${SSL}/lib 
# needed if you need to start from scratch otherwise the CA.pl -newca command doesn't copy the new 
# private key into the CA directories 
rm -rf demoCA 
echo "*********************************************************************************" 
echo "Creating self-signed private key and certificate" 
echo "When prompted override the default value for the Common Name field" 
echo "*********************************************************************************" 
echo 
# Generate a new self-signed certificate. 
# After invocation, newreq.pem will contain a private key and certificate 
# newreq.pem will be used in the next step 
openssl req -new -x509 -keyout newreq.pem -out newreq.pem -days 730 \ 
-passin pass:whatever -passout pass:whatever 
.
.
.
.
.

그러나 실행결과는
bash: openssl: command not found
이렇게 나옵니다.[/img]

hurryon의 이미지

rpm 버전으로 openssl 를 설치하셨는지 아니면 tarball 방식으로 설치를 하셨는지요?

rpm -qa | grep ssl
rpm -qi [패키지명]
rpm -ql [패키지명]

정도로 rpm 버전으로 설치하셨다면 패키지에 대한 정보를 먼저 아셔야 할거 같네요. tarball 로 설치하셨다면 대부분 /usr/local/openssl 로 설치하셨겠죠?

위와 같은 방법으로 정확한 패스를 확인하시는것이 먼저 인거 같습니다. 패스 확인 하신 후에 스크립트에서 패스부분을 수정해 주세요.

그리고 프로그래밍쪽이 아닌 일반 설치쪽에 적합한 글인거 같네요. 냠냠...:-)

radius의 이미지

설치 QnA 였군요 ㅠㅠ
tar로 설치를 했습니다.
확인해보니 경로에는 문제가 없는 듯(?)한데..
다시 한번 확인해 보겠습니다. ^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.