Prerequisites

  • Linux OS with openssl tool installed
    • sudo apt-get install openssl
    • sudo apt-get install libssl-dev

Generate private key

  • openssl genrsa -des3 -out private.key 2048
    • Note. Do not forget passphrase for private key

Generate CA request file for enrollment

  • openssl req -new -key private.key -out CertificateReq.csr
    • Please fill in those fields as prompted

CA Self-sign the certificate with private key

  • openssl x509 -req -days 1095 -in CertificateReq.csr -signkey private.key -out Certificate.crt
創作者介紹
創作者 Cooldy's notebook 的頭像
cooldia

Cooldy's notebook

cooldia 發表在 痞客邦 留言(0) 人氣( 15 )