zoukankan      html  css  js  c++  java
  • 生成证书申请csr文件

    一、执行命令

    openssl req -nodes -newkey rsa:2048 -keyout liexiulive.key -out liexiulive.csr
    

    二、根据提示输入基本信息

    Generating a 2048 bit RSA private key
    .........................................................................+++
    .....+++
    writing new private key to 'liexiulive.key'
    -----
    You are about to be asked to enter information that will be incorporated
    into your certificate request.
    What you are about to enter is what is called a Distinguished Name or a DN.
    There are quite a few fields but you can leave some blank
    For some fields there will be a default value,
    If you enter '.', the field will be left blank.
    -----
    Country Name (2 letter code) [AU]:CN
    State or Province Name (full name) [Some-State]:BEIJING
    Locality Name (eg, city) []:BEIJING
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:LIEXIULIVE
    Organizational Unit Name (eg, section) []:LIVE
    Common Name (e.g. server FQDN or YOUR name) []:*.LIEXIULIVE.COM
    Email Address []:ADMIN@LIEXIULIVE.COM
    
    Please enter the following 'extra' attributes
    to be sent with your certificate request
    A challenge password []:直接回车不要填写
    An optional company name []:直接回车不要填写

    三、生成的证书申请文件和私钥文件(.key文件千万别丢非常重要!!!美文

    -rw-r--r--  1 ac  staff  1066  5  9 14:51 liexiulive.csr
    -rw-r--r--  1 ac  staff  1704  5  9 14:51 liexiulive.key

    四、复制csr内容粘贴到name.com的申请框中(注意包括BEGIN和END两行)

    -----BEGIN CERTIFICATE REQUEST-----
    MIIC2zCCAcMCAQAwgZUxCzAJBgNVBAYTAkNOMRAwDgYDVQQIDAdCRUlKSU5HMRAw
    DgYDVQQHDAdCRUlKSU5HMRMwEQYDVQQKDApMSUVYSVVMSVZFMQ0wCwYDVQQLDARM
    SVZFMRkwFwYDVQQDDBAqLkxJRVhJVUxJVkUuQ09NMSMwIQYJKoZIhvcNAQkBFhRB
    RE1JTkBMSUVYSVVMSVZFLkNPTTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
    ggEBAMLxe9MUo66aR2nALnIjOne+u5y0ju0nEMVH14GzOhlHkN2UYaJUbGlsbvJo
    l6AsQ2npZ9H4N7fp7b00LHzf1ZQyrrFpHThV3TrU2tzdtkeL7qjc5UUc0FO1/gJS
    9zgS3kVvC4u8EVY4g8DudUnDbRpNM4uRv5mNiyeuRtgTrhLzfSsGRoOkMvLhdtR9
    8l21g4s7N3a0U7qQprDFI5sXmY4XP1C2pvKBXsrRaqwQFBVrPgANIAe5E+OybqGW
    zTxsXsaTLQxKjjCNQpWtvbJMHFEhVxGFUsGYCBR5d0VRzL/7M2YLgRN/rw8tYzdo
    Zc74CU2g1hzTcx/1Iy7YJbmIAZ0CAwEAAaAAMA0GCSqGSIb3DQEBCwUAA4IBAQAQ
    rBAFYmv03ZUP4GEnRLPpkVSper9gKg/j3M4/WF90fl6Q/Tk/Jn9AUSdcVEKtne7c
    qE0i97k0uoYBhrf7xZes0fYeFLiaviabxsKybwB/VhaRh168/axWixHUmei5oiuE
    d1mesGt1lR9w4DWUPQNNNiLUyazcqEbiLSGl6voZfkcKNbuf6coTtD0Dkw2MiyGp
    shD7EqgC06x6uNJ0n7J0X3eJnWJCo8UpNpjD+UEf+D2/zLo41JgIek/sFkdN0QGZ
    BWllZ/zoIXAaprJAD6jQWLVddxNcaaZFdqQq8/FnOkqG7xg+TlX+xpCOY4jrQpTT
    5Zvt+Tk7OMc/EUZJNvdA
    -----END CERTIFICATE REQUEST-----
  • 相关阅读:
    web前端开发面试被虐篇(一)
    JSON字符串 拼接与解析
    IntelliJ IDEA 2017 Dubbo Elastic-job Redis Zookeeper RabbitMQ FastDFS MyCat 简介以及部分实现(三)
    IntelliJ IDEA 2017 MySQL5 绿色版 Spring 4 Mybatis 3 配置步骤详解(二)
    IntelliJ IDEA 2017 JDK Tomcat Maven 配置步骤详解(一)
    简单练习
    C#实现上传/下载Excel文档
    javascript练习题
    转 浏览器滚动条以及常用样式汇总
    深入基础(五)工具模块,常用模块(2)
  • 原文地址:https://www.cnblogs.com/onephp/p/9633134.html
Copyright © 2011-2022 走看看