Git Product home page Git Product logo

cert's Introduction

cert

openssl 명령어를 이용한 인증서 생성 script

https://www.minzkn.com/moniwiki/wiki.php/GenerateCertificate


우선 openssl 명령이 실행가능한 환경이어야 합니다.

발급하고자 하는 인증서의 상세 기술내용을 rootca.conf 및 host.conf 를 편집하여 내용을 수정합니다.

"cert.sh" script 는 다음과 같은 인자 형식을 사용할 수 있습니다.

usage: ./cert.sh {rootca | gen [{name}] | clean}

우선 자체서명 최상위 인증서 (Self-signed CA certificate) 파일을 다음의 명령으로 생성합니다.

./cert.sh rootca

대부분의 입력사항은 rootca.conf 에 기술된 내용이므로 ENTER를 입력합니다.

이제 생성된 rootca로부터 발급인증서를 무한하게 발급할 수 있습니다. 발급을 위해서 다음과 같은 명령을 사용합니다.

./cert.sh gen {발급할 인증서 파일명}

역시 대부분의 입력사항은 host.conf 에 기술된 내용이므로 ENTER를 입력합니다.

본 script 의 실행에 따라서 생성되는 파일들은 다음과 같습니다.

*.key : 개인키 파일 (유출 주의)
*.enc.key : 개인키 암호화된 파일 (유출 주의)
*.csr : 인증서 요청 파일
*.der : DER형식의 인증서 파일
*.pem : PEM형식의 인증서 파일
*.srl : Serial 파일

cert's People

Contributors

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