pemtokeystore

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: Apache-2.0 Imports: 19 Imported by: 1

README

Easily convert PEM files to Java Keystore

Build Status Go Report Card GoDoc license

Installation

go get github.com/jimmidyson/pemtokeystore/cmd/pemtokeystore

Usage

Usage of pemtokeystore:
  -ca-file path
        PEM-encoded CA certificate file path(s) - repeat for multiple files
  -cert-file alias=path
        PEM-encoded certificate file(s) in the format alias=path - repeat for multiple files
  -key-file alias=path
        PEM-encoded private key file(s) in the format alias=path - repeat for multiple files
  -keystore path
        path to keystore
  -keystore-password password
        keystore password

Example

$ pemtokeystore -keystore my.ks -keystore-password changeit \
                -ca-file ca-root.pem -ca-file ca-signer.pem \
                -cert-file myserver=server.pem -key-file myserver=key.pem
License

This project is Apache Licensed

Documentation

Index

Constants

View Source
const (
	DefaultKeystorePassword = "changeit"
)

Variables

This section is empty.

Functions

func CreateKeystore

func CreateKeystore(opts Options) error

Types

type Options

type Options struct {
	PrivateKeyFiles map[string]string
	CertFiles       map[string]string
	CACertFiles     []string
	CACertDirs      []string

	KeystorePath     string
	KeystorePassword string

	SourceKeystorePath     string
	SourceKeystorePassword string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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