winca

command module
v0.0.0-...-dbe10d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2021 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Windows Certificate Authority CLI

About

A simple command line utility to request and download a new certificate using a OpenSSL CSR against a standard Windows Server CA.

Works great with Ansible.

Usage

Print the help page with winca get -h:

winca get [--username=string] [--password=string] [--skipVerify] <csrPath> <outPath> <apiUrl> <template>

Description:
    Get a new certificate

Arguments:
    csrPath            A path to an existing CSR file on disk
    outPath            The certificate output path
    apiUrl             The api url
    template           The certificate template to use

Options:
    -u, --username     The user context to issue the certificate with
    -p, --password     The password
        --skipVerify   Skip SSL verification
Example
# 1) Create a new CSR and private key using OpenSSL
openssl req -nodes -new -newkey rsa:2048 -sha256 -out csr.pem

# 2) Use winca to download a new certificate. It will ask for your <domain>\<username> and password.
winca get csr.pem mycert.crt https://mywindowsca/certsrv MyCertificateTemplate

# 3) You should now have a valid certificate singed by My CA. You can verify it using the command below
openssl x509 -in mycert.crt -text -noout

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址