Git Product home page Git Product logo

ssl's Introduction

STEPS FOR CREATE SELF-SIGNED SSL CERTIFICATE FOR EC2 LOAD BALANCER

Provide Required Input in Attribute file

  • NOTE - make sure there is no emty value set. script will automatically taking care of that.

Default value set in attribute.cfg file.

SR.NO ATTRIBUTE DEFAULT VALUE
1 package_name openssl
2 domain_name example.com
3 country IN
4 state MAHARASHTRA
5 locality PUNE
6 organization example pvt ltd
7 organizationalunit IT
8 email [email protected]
9 certificate_validity 365
10 password test123
11 upload_cert_dir example.com
  1. Update your input in attribute.cfg file.
  2. Assign execution permission to setup.sh.
  3. Please execute setup.sh using root account.

###1: Generate private key

openssl genrsa -des3 -out my_domain.key 1024 [Enter and confirm pass phrase]

###2: Generate CSR

openssl req -nodes -newkey rsa:2048 -keyout my_domain.key -out my_domain.csr

###3: Remove pass phrase from key

Make sure key only readable by root!

cp my_domain.key my_domain.key.org openssl rsa -in my_domain.key.org -out my_domain.key

###4: Generate certificate

openssl x509 -req -days 365 -in my_domain.csr -signkey my_domain.key -out my_domain.crt

Certificate uploading steps -

  1. Go to AWS Control Panel -> EC2 Management Console -> Load Balancers
  2. Add listner to HTTPS
  3. Choose Upload SSL Certificate
  4. Display key text in terminal window:

openssl rsa -in my_domain.key -text

  1. Copy that, including “Begin…End” sections; paste into text field in AWS console Do the same with the certificate:

openssl x509 -inform PEM -in my_domain.crt

Several layers of saving…

ssl's People

Contributors

nikhilkapure avatar

Watchers

James Cloos avatar  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.