OraWorld

Where Technology meets Experience.

  • 
  • 
  • 
  • 
  • 
  • 
  • Home
  • Articles
    • FMW
      • 12c
      • NodeManager
      • OHS
      • SOA
      • Webcenter
      • OBIEE
      • BIAPPS
      • OEM 12c
    • IAM
      • OAM
      • OIM
      • OID – OVD
      • ODSEE
      • OUD
      • OES
      • OMSS
      • OIF
    • APPS
      • Ebiz Applications
      • Fusion Applications
    • Others
      • Database – Pl/Sql
      • OS
  • Blog
  • Contact US
  • About Us

January 8, 2015 by Sumit Gupta 2 Comments

Windows: HOWTO create a pkcs12 (.pfx or .p12) from OpenSSL files (.pem , .cer, .crt, …) in Windows?

Windows: HOWTO create a pkcs12 (.pfx or .p12)  from OpenSSL files (.pem , .cer, .crt, …) in Windows?

a) Download openssl from the official website: Open http://www.openssl.org/. then download the “binary” program for Windows: > related > Binaries :http://www.openssl.org/related/binaries.html

b) OpenSSL requires a “openssl.cnf” configuration file. You can download a sample file from here and copy in your openssl folder.

c) Generate PKCS#12 with the following commands with a self-signed certificate.

  • Generate an RSA private key
openssl genrsa -out OW_key.key 2048

  • Generate a Certificate Signing Request
openssl req -new -key OW_key.key -out OW_request.csr -config C:\OpenSSL\openssl.cnf

  • Generate a self signed public certificate
openssl x509 -req -days 3650 -in OW_request.csr -signkey OW_key.key -out OW_cert.crt

  • Generate a PKCS#12 file
openssl pkcs12 -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES -export -in OW_cert.crt -inkey OW_key.key -out OW_pkcs12.pfx -name “OraWorld”

d) Following artifacts will be generated once above commands are executed successfully.

 

Filed Under: Windows Tagged With: Certificate Signing Request, csr, openssl, pfx, pkcs12, RSA private key

Trackbacks

  1. 1Z1-442: OMSS: Oracle Mobile Security Suite Installation On Windows | Ora World says:
    January 8, 2015 at 4:30 pm

    […] (If host certificate is used) for this server. You will be using a self-signed certificate. Refer here to create […]

    Reply
  2. 1Z1-442: OMSS: Oracle Mobile Security Suite Installation using Kerberos with Password | Ora World says:
    January 8, 2015 at 9:41 pm

    […]  Select Certificate screen: In my blog here, we saw HOWTO use PKCS12 option. Here lets see different option of Self-Signed […]

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe

Author

Sumit GuptaSumit Gupta (214)

Sumit Gupta is an Oracle Fusion Middleware consultant with more than 13+ years of rich experience working on Oracle technologies. His area of expertise includes Oracle Identity Management (OIM, OAM, OID, OUD, ODSEE, DIP), SSO, IDCS, WebLogic,SOA, UCM, Webcenter, OBIA, OBIEE, Oracle EPM, ODI, Oracle E-Business Suite and Fusion Applications.

Find posts by Categories

Find posts by Months

Sharing is Sexy !

  • 
  • 
  • 
  • 
  • 

© Copyright 2015 OraWorld · All Rights Reserved