Code Monkey home page Code Monkey logo

localssl's Introduction

localssl

生成自签证书。


开始使用

Windows

首先安装 openssl 并设置环境变量,可参考 博客园文章 的安装方式二,
然后安装 git for windows
然后拉取并运行 .\generateAll.bat 生成自签机构与域名证书。

git clone https://github.com/bddjr/localssl
cd localssl
.\generateAll.bat

Linux

git clone https://github.com/bddjr/localssl
cd localssl
chmod 777 ./generateAll.sh
chmod 777 ./generateDomain.sh
./generateAll.sh

编辑 localssl.ext

按照如下格式

subjectAltName = DNS:localhost, DNS:local.example.com, IP:127.0.0.1, IP:::1

然后重新生成,再打开 out/localhost.crt ,点击“详细信息”,找到“使用者可选名称”。

image


信任证书

out/localssl.crt 添加到操作系统里的 “受信任的根证书颁发机构” 。


部分内容参考了
https://learn.microsoft.com/zh-cn/azure/application-gateway/self-signed-certificates
以及互联网上的其它文章。

localssl's People

Contributors

bddjr 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.