分享

Preparation of using OpenSSL

 digitaldreamer 2007-01-23

Env Setup

  1. Create a working directory called c:\ssl
  2. Create three sub folders named as keys, requests and certs under c:\ssl.
  3. Drop the openssl.conf into the working folder, c:\ssl.
  4. Create an empty database.txt in working directory.
  5. Create the serial number file serial.txt in working directory. This is a plain ASCII file containing the string "01" on the first line, followed by a newline.

Setup a CA

  1. Generate CA‘s private key (rsa, des, 1024b).

                    c:\ssl\openssl genrsa -des3 -out keys/ca.key 1024

                    Meanwhile you need to provide a pass phrase for this private key.

                    The generated key file is in PEM format ???

  1. Create a CA certificate based on this private key in c:\ssl\certs folder.

                   C:\ssl>openssl req -config openssl.conf -new -x509 -days 1001 -key keys/ca.key -out certs/ca.cer

                   The ca.cer is also in PEM format.


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多