Git Product home page Git Product logo

azure-web-cert's Introduction

Azure Update Cert

Create SSL certificate and bind domain for Azure web application:

  1. Create web SSL certificate for certificate taken from key vault SSL certificate ( kv-id, kv-secret-name )

  2. Create domain (domain) for app service (app-service-name) and certificate ( thumbprint ). Thumbprint should be the thumbprint of the certificate created by first step.

Prerequisites

  • Az cli

Usage

$ nano config.pl6

{
    domain => "app.domain.foo",
    thumbprint => "ABC010101H0A....",
    az-res-group => "my-az-grp",
    kv-id => "my-kv-storage",
    kv-secret-name => "production-cert",
    app-service => "app"
}

$ sparrowdo --git=https://github.com/melezhik/azure-web-cert.git --local_mode

Config.pl6

az-res-group

Azure resource group

thumbprint

SSL certificate thumbprint

domain

Domain name

kv-id

Key vault identification

kv-secret-name

Key vault secret name

app-service

Azure application service name

Modes

Default

This mode is applied by default. ARM templates are generated, validated and executed.

You can choose options, read next two sections.

Dry run mode

In this mode ARM templates are generated, but not executed.

Set config to dry-run:

$ cat config.pl6  

{

  mode => 'dry-run',
  # Other params
}

Validate mode

In this mode ARM templates are generated, validated but not executed.

Set config to validate:

$ cat config.pl6  

{

  mode => 'validate',
  # Other params
}

Skip certificate creation stage

$ cat config.pl  

{

  skip-cert-crt => True
  # Other params
}

Check ssl cert

$ cat config.pl  

{

  check-ssl => True
  # Other params
}

Author

Alexey Melezhik

azure-web-cert's People

Contributors

melezhik avatar

Stargazers

 avatar

Watchers

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