zoukankan      html  css  js  c++  java
  • Openssl oscp命令

    一、简介

    ocsp,在线证书状态命,能够执行很多OCSP的任务,可以被用于打印请求文件和响应文件,

    二、语法

    openssl ocsp [-out file] [-issuer file] [-cert file] [-serial num] [-signer file] [-signkey file ] 
    [-sign_other file ] [-no_certs] [-req_text] [-resp_text] [-text] [-reqout file] [-respout file] 
    [-reqin file] [-respin file] [-nonce] [-no_nonce] [-url URL] [-host host:n] [-path] [-CApath dir] 
    [-CAfile file] [-VAfile file] [-validity_period n] [-status_age n] [-noverify] [-verify_other file] 
    [-trust_other] [-no_intern] [-no_signature_verify] [-no_cert_verify] [-no_chain] [-no_cert_checks] 
    [-port num] [-index file] [-CA file] [-rsigner file] [-rkey file] [-rother file] [-resp_no_certs] [-nmin n] 
    [-ndays n] [-resp_key_id] [-nrequest n]

    选项

    -out file          output filename
    -issuer file       issuer certificate
    -cert file         certificate to check
    -serial n          serial number to check
    -signer file       certificate to sign OCSP request with
    -signkey file      private key to sign OCSP request with
    -sign_other file   additional certificates to include in signed request
    -no_certs          don't include any certificates in signed request
    -req_text          print text form of request
    -resp_text         print text form of response
    -text              print text form of request and response
    -reqout file       write DER encoded OCSP request to "file"
    -respout file      write DER encoded OCSP reponse to "file"
    -reqin file        read DER encoded OCSP request from "file"
    -respin file       read DER encoded OCSP reponse from "file"
    -nonce             add OCSP nonce to request
    -no_nonce          don't add OCSP nonce to request
    -url URL           OCSP responder URL
    -host host:n       send OCSP request to host on port n
    -path              path to use in OCSP request
    -CApath dir        trusted certificates directory
    -CAfile file       trusted certificates file
    -trusted_first     use trusted certificates first when building the trust chain
    -VAfile file       validator certificates file
    -validity_period n maximum validity discrepancy in seconds
    -status_age n      maximum status age in seconds
    -noverify          don't verify response at all
    -verify_other file additional certificates to search for signer
    -trust_other       don't verify additional certificates
    -no_intern         don't search certificates contained in response for signer
    -no_signature_verify don't check signature on response
    -no_cert_verify    don't check signing certificate
    -no_chain          don't chain verify response
    -no_cert_checks    don't do additional checks on signing certificate
    -port num         port to run responder on
    -index file     certificate status index file
    -CA file         CA certificate
    -rsigner file     responder certificate to sign responses with
    -rkey file     responder key to sign responses with
    -rother file     other certificates to include in response
    -resp_no_certs     don't include any certificates in response
    -nmin n          number of minutes before next update
    -ndays n          number of days before next update
    -resp_key_id       identify reponse by signing certificate key ID
    -nrequest n        number of requests to accept (default unlimited)
    -<dgst alg>     use specified digest in the request

    三、实例

    1、生成OCSP请求并写入到文件

    openssl ocsp -issuer issuer.pem -cert c1.pem -cert c2.pem -reqout req.der
  • 相关阅读:
    Delphi中三种方法获取Windows任务栏的高度
    Qt中QFtp获取带有中文的文件名称出现乱码的解决方法(比较巧妙,toLatin1压缩掉了QString自动给每个英文字符加上的那些00字节)
    Qt在Linux环境下应用程序字体模糊的解决方法(先改成使用默认字体,然后使用qtconfig配置)
    关于Qt信号与槽机制的传递方向性研究(结论其实是错误的,但是可以看看分析过程)
    RCP:如何把Preferences中的项从一个类别移动到另一个类别 2013-08-23 18:59 by Binhua Liu,
    服务端套接字类CxServerSocket的使用
    ASP.NET MVC原理
    jQuery 2.0.3 源码分析core
    CodeBlocks的下载安装、配置、简单编程
    ASP.NET MVC学习笔记-----Filter2
  • 原文地址:https://www.cnblogs.com/274914765qq/p/4675476.html
Copyright © 2011-2022 走看看