saileshpfxtool 3.0.0

dotnet tool install --global saileshpfxtool --version 3.0.0                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local saileshpfxtool --version 3.0.0                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=saileshpfxtool&version=3.0.0                
nuke :add-package saileshpfxtool --version 3.0.0                

Sailesh PFX Tool

by Aashish Koirala This is a port of the pfx tool to .net 6 and .net 8 by Sailesh

Build Status

Sailesh PFX Tool is a command line tool that does stuff with and around PFX certificates.

Installation

Sailesh PFX Tool is a .NET Core Global Tool that is built to run against the .NET Core 2.2 runtime. To install:

dotnet tool install saileshpfxtool -g

Usage

The basic usage is as follows:

saileshpfxtool <command> <options>

The following commands are currently supported:

  • import: Import certificates and keys from a PFX file to a certificate store.
  • export: Export certificates and keys from a certificate store to a PFX file.
  • remove: Remove an existing certificate and keys from a certificate store.
  • list: List all certificates in a certificate store or in a PFX file.
  • show: Show details of a certificate in a certificate store or in a PFX file.

The following commands are not currently supported but are planned:

  • create: Create a PFX out of given certificate and key files (a-la openssl).
  • explode: Explode a PFX into its constituent certificate and key files.

For details, run pfxtool without any options to get usage instructions.

Examples

Import test.pfx (protected with password Test123) into the current user's personal store.

saileshpfxtool import --file test.pfx --password Test123 --scope user --store my

Export certificate and key with thumbprint ABCDEF from the machine's root certificate store into a file test.pfx, protecting the private key with password Test123.

saileshpfxtool export --file test.pfx --password Test123 --scope machine --store root

Issues

To submit any issues, use the Issues section in this repository.

Contributing

Feel free to fork and send PRs - this is pretty small and I haven't had a chance to set up guidelines.

License

See LICENSE.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
3.0.0 47 2/4/2025
2.0.0 806 7/15/2022
1.0.0 908 3/28/2020