zoukankan      html  css  js  c++  java
  • openssl pkcs12

    How to create .pfx file from certificate and private key?

    You will need to use openssl.

    openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt

    The key file is just a text file with your private key in it.

    If you have a root CA and intermediate certs, then include them as well using multiple -in params

    openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt -in intermediate.crt -in rootca.crt

    You can install openssl from here: openssl

    openssl pkcs12

    DESCRIPTION

    The pkcs12 command allows PKCS#12 files (sometimes referred to as PFX files) to be created and parsed. PKCS#12 files are used by several programs including Netscape, MSIE and MS Outlook.

    OPTIONS

    There are a lot of options the meaning of some depends of whether a PKCS#12 file is being created or parsed. By default a PKCS#12 file is parsed. A PKCS#12 file can be created by using the -export option (see below).

    FILE CREATION OPTIONS

    -export

    This option specifies that a PKCS#12 file will be created rather than parsed.

    -out filename

    This specifies filename to write the PKCS#12 file to. Standard output is used by default.

    -in filename

    The filename to read certificates and private keys from, standard input by default.

    They must all be in PEM format. The order doesn't matter but one private key and its corresponding certificate should be present. If additional certificates are present they will also be included in the PKCS#12 file.

    -inkey file_or_id

    File to read private key from. If not present then a private key must be present in the input file. If no engine is used, the argument is taken as a file; if an engine is specified, the argument is given to the engine as a key identifier.

  • 相关阅读:
    (笔记)电路设计(十三)之振荡电路的应用
    (笔记)电路设计(十二)之高速数字系统滤波电容的设计应用
    爬楼梯问题 leetcode70
    偏函数
    柯里化
    插入排序
    选择排序
    冒泡排序
    解包(封装和解构)、丢弃变量
    数据类型之集合
  • 原文地址:https://www.cnblogs.com/chucklu/p/15241933.html
Copyright © 2011-2022 走看看