stylianosnicoletti / dotnet-certificate-tool

Command line tool to install and remove certificates from the current user's store.
https://www.nuget.org/packages/dotnet-certificate-tool
Apache License 2.0
106 stars 28 forks source link

Dotnet Certificate Tool

Directions

Command line tool to install and remove certificates from the current user's store. Mainly used to workaround the limitation of certificates installed in the current user's store in Unix hosts.

See following github issue for more information.

Installation

dotnet tool install --global dotnet-certificate-tool

Usage

Available arguments:

With a base 64 string

Assuming you have the following variables setup:

certificate-tool add --base64 $base64 --password $password

certificate-tool remove --thumbprint $thumbprint

With a pfx file

Assuming you have the following variables setup:

certificate-tool add --file ./cert.pfx --password $password

certificate-tool remove --thumbprint $thumbprint

With PEM formatted files

Assuming you have the following variables setup:

certificate-tool add --cert ./cert.crt --key ./cert.key --password $password

certificate-tool remove --thumbprint $thumbprint

License

Copyright © 2020, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license here.