Skip to content

Command line tool to install and remove certificates from the current user's store.

License

Notifications You must be signed in to change notification settings

adhip94/dotnet-certificate-tool

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotnet-certificate-tool

Command line tool to install and remove pfx 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:

  • --base64 (-b): base 64 encoded certificate value
  • --file (-f): path to the *.pfx certificate file
  • --password (-p): password for the *.pfx certificate (required)
  • --thumbprint (-t): certificate thumbprint (required)
  • --store-name (-s): certificate store name (defaults to My). See possible values here

With a base 64 string

Assuming you have the following environment variables setup:

  • $base64: base 64 encoded certificate value
  • $password: pfx certificate password
  • $thumbprint: certificate's thumbprint

certificate-tool add --base64 $base64 --password $password --thumbprint $thumbprint --store-name My

certificate-tool remove --base64 $base64 --password $password --thumbprint $thumbprint --store-name My

With a pfx file

Assuming you have the following environment variables setup:

  • $password: pfx certificate password
  • $thumbprint: certificate's thumbprint

certificate-tool add -f ./cert.pfx --password $password --thumbprint $thumbprint --store-name Root

certificate-tool remove -f ./cert.pfx --password $password --thumbprint $thumbprint --store-name Root

License

Copyright © 2019, GSoft inc. This code is licensed under the Apache License, Version 2.0. You may obtain a copy of this license at https://github.com/gsoft-inc/gsoft-license/blob/master/LICENSE.

About

Command line tool to install and remove certificates from the current user's store.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 82.5%
  • Shell 11.7%
  • Dockerfile 5.8%