https://github.com/mikepruett3/ps-certtools
Custom PowerShell module for Certificate tools
https://github.com/mikepruett3/ps-certtools
certficate certificates openssl powershell powershell-module
Last synced: 12 months ago
JSON representation
Custom PowerShell module for Certificate tools
- Host: GitHub
- URL: https://github.com/mikepruett3/ps-certtools
- Owner: mikepruett3
- License: mit
- Created: 2024-08-30T16:08:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T04:57:01.000Z (over 1 year ago)
- Last Synced: 2025-05-28T22:51:49.252Z (about 1 year ago)
- Topics: certficate, certificates, openssl, powershell, powershell-module
- Language: PowerShell
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerShell Certificate Tools (ps-certtools)
Module create to include custom functions that work with Certificates. For use with other cmdlets and scripts.
## Installation
Clone the repository into your **$Home\Documents\WindowsPowerShell\Modules** folder (create the Modules folder if you dont have one already)
```powershell
cd $env:UserProfile\Documents\WindowsPowerShell\Modules\
git clone https://github.com/mikepruett3/ps-certtools.git
```
Then you can import the custom module into your running shell...
```powershell
Import-Module ps-certtools
```
## Usage
### Convert-PFX2PEM
Use this function to create the appropriate ASCII encoded Certificate files. This includes the following files:
- A CA Certificate bundle file
- A separate Public Certificate file
- A separate DER-Encoded file
- A separate Private Key file
- A separate PEM-Encoded file
Example
```PowerShell
> Convert-PFX2PEM -Path "c:\example.pfx" -Passphrase "mypassword"
```
Will result in the following files generated:
- C:\example.chain.cer
- C:\example.crt
- C:\example.der
- C:\example.key
- C:\example.pem