OCSP 확인 프로세스가 죽는 증상

ganzboy의 이미지

안녕하세요.
사설인증기관을 만들고 있습니다.
root 인증서를 만들었고, 해당 인증서로 서명한 서버 인증서를 만들었습니다.
이후 인증서에 등록된 ocsp 주소를 사설인증기관 서버에서 서비스로 띄어 놨습니다.
명령어는 다음과 같이 띄어놨습니다.

openssl ocsp -index /ca/index.txt -port 8888 -rsigner /ca/ca.crt -rkey /ca/private/ca.key -CA /ca/ca.crt -text -out log.log

이렇게 띄운 다음 클라이언트에서
openssl ocsp -CAfile ca.crt -issuer ca.crt -cert server.crt -url http://192.168.0.11:8888
명령어를 치면 다음과 같은 응답이 옵니다.

Response verify OK
server.crt: good
This Update: Aug 2 05:03:55 2018 GMT

정상적인 case 입니다.

여기서 질문이 있는데, 정상적인 요청을 하면 저렇게 응답을 주고, 8888포트는 정상적으로 떠 있습니다.
그런데 잘못된 요청이 오는 경우,
"Responder Error: malformedrequest (1)"
이런 로그가 찍히고, 8888포트는 종료되 버립니다.

잘못된 요청이 온다 하더라도, 정상적으로 서비스는 돌아가고 있어야 할것같은데 종료되는게 좀 이해가 안가네요.
이부분 관련해서 아시는분 계실까요?
openssl 을 이용해서 띄운 서비스기때문에, try catch 같은 작업도 할 수가 없네요.

익명 사용자의 이미지

-ignore_err 을 사용해보세요.

https://github.com/openssl/openssl/issues/3043
https://www.openssl.org/docs/man1.1.1/man1/openssl-ocsp.html

openssl에 대한 지식이 전무한 제가 구글링해서 10분만에 찾았습니다. 검색어는 openssl ocsp closing on bad request 였습니다. 너무 깐깐한 것 같습니다만 질문의 수준도 생각을 좀 할 필요가 있습니다.

ganzboy의 이미지

첨부하신 링크 첫번째 게시물은 제가 분명 찾았던 게시물인데, 저부분을 왜 못봤는지 모르겠네요.
openssl 홈페이지에도 저렇게 딱 나와있었군요.
좀더 신중히 봤어야 했네요.
답변 감사합니다.

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.