Giter VIP home page Giter VIP logo

certificate-key-generator's Introduction

Certificate & Key Generator

本项目用于生成应用程序需要的SSL自签名证书,秘钥等。
使用另一款开源工具KeyStore Explorer来生成自签名证书也是一个不错的主意,具体请看此教程。如此,您可能用不到本项目。

(1) 工具

  • make
  • openssl
  • keytool

(2) 用法

# 生成自签名根证书
make gen-rootca

# 生成服务器端用证书和秘钥
make gen-server

# 生成客户端用证书和秘钥 (可选)
# 如果您的应用程序不需要SSL双向认证,您无需此功能。
make gen-client

# 生成JWT签名用证书和秘钥 (可选)
# 若您的应用程序用不到JWT,您无需此功能。
make gen-jwt

# 清除已生成的文件 (根证书和秘钥不会被删除)
make clean

# 清除已生成的文件 (根证书和秘钥也被删除) (危险!)
make clean-all

# 查看更多功能
make usage

(3) 注意事项

  • 可按照实际需求更改变量文件。建议您优先使用PKCS#12格式的文件。
  • 本程序生成的私钥文件(.pem)都是无加密的。请您注意保管。
  • 本程序生成的KeyStore文件(.p12)的storepasskeypass是一致的,默认值为changeit

(4) 参考文献

(5) 许可证

certificate-key-generator's People

Contributors

yingzhuo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.