liveBook · Manning

OpenSSL

As explained in Building Web APIs with ASP.NET Core

OpenSSL is an open-source toolkit and command-line tool for cryptography, certificates, and related security files.

OpenSSL is an open-source command-line toolkit for cryptography, certificates, and related security files. In a Windows deployment, it converts PEM and KEY certificate files into a PFX file that IIS can import. section 12.3.5

Use OpenSSL for the IIS certificate-import workflow:

  • Install Win64 OpenSSL v3.0.5 Light, whose basic features are sufficient for this conversion. section 12.3.5
  • Open a command prompt, move to the folder containing the PEM and KEY files, and run the PKCS#12 export command. section 12.3.5
  • Enter and remember an export password, then use the generated PFX file in IIS and delete the unnecessary PEM and KEY files locally. section 12.3.5

Convert PEM and KEY files to PFX

"C:\Program Files\OpenSSL-Win64\bin\openssl.exe" pkcs12 -export -out mybglist_origin.pfx -in mybglist_origin.pem -inkey mybglist_origin.key section 12.3.5

"C:\Program Files\OpenSSL-Win64\bin\openssl.exe" pkcs12 
   -export -out mybglist_origin.pfx 
   -in mybglist_origin.pem -inkey mybglist_origin.key

Open the supplied listing to inspect the complete Windows command used for certificate conversion. section 12.3.5

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Provides installation, command execution, password entry, and file-cleanup steps without explaining cryptographic internals.
Examples
Uses a Windows OpenSSL command to generate mybglist_origin.pfx from mybglist_origin.pem and mybglist_origin.key.
What it assumes
Assumes PEM and KEY files, a Windows environment, and basic command-prompt use; supplies installation guidance from zero.
What you can do after
Operate/configure OpenSSL to create an IIS-importable PFX certificate file.
How it connects
Connects certificate formats, cryptography, PKCS#12, SSL/TLS, and IIS configuration.

Also explained in

Compare how 3 books explain OpenSSL →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.