• 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.

  • 相关阅读:
    内置函数二
    内置函数一
    生成器
    迭代器相关
    再遇函数
    使用Ant搭建Android开发环境入门
    iOS GameCenter 接入
    手游充值-如何对付淘宝代充店
    分析苹果代充产业链 汇率差+退款造就三线城市千万富翁‍_中新游戏研究_Joynews中新游戏
    iOS消息推送机制的实现
  • 原文地址:https://www.cnblogs.com/chucklu/p/15241933.html
Copyright © 2020-2023  润新知