Skip to content

jimmidyson/pemtokeystore

Repository files navigation

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