Giter Club home page Giter Club logo

autotls-cdp's Introduction

autoTLS-CDP

For CDP, cloudera provide a set of automatic options to configure TLS. https://blog.cloudera.com/auto-tls-in-cloudera-data-platform-data-center/

For security reason, most of the custmer will ask to use certificates signed by internal company for each host.

These scripts will help customer to automate the process of CSR generation, signing and population on CM. All these scripts need to run on CM node.

Generation generate.sh

This script will require a file hosts that will list all nodes where we are planning to enable TLS.

The script will generate the jks but also the CSR that need to be communicated to the PKI Team

  • For safety reason, it's better to backup the output folder.

Import import.sh

The PKE will communicate for you the chain but also the reply (that represent the public key).

The script will be responsible to import the reply and the chain but also prepare the encrypted private key.

Populate populate.sh

I use this script to populate a temp folder that will be used by CM to do the tls Enablement during the curl command.

Curl curl.sh

If customer have a long list of nodes, this will help to prepare the list of host parts and have just to copy paste inside the body that will be used.

curl -i -v -uadmin:admin -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{

"location" : "/opt/cloudera/AutoTLS", "customCA" : true,

"interpretAsFilenames" : true,

"cmHostCert" : "/tmp/auto-tls/certs/ccycloud-7.vcdp71.root.hwx.site.pem",

"cmHostKey" : "/tmp/auto-tls/keys/ccycloud-7.vcdp71.root.hwx.site-key.pem",

"caCert" : "/tmp/auto-tls/ca-certs/cfssl-chain-truststore.pem",

"keystorePasswd" : "/tmp/auto-tls/keys/key.pwd",

"truststorePasswd" : "/tmp/auto-tls/ca-certs/truststore.pwd",

"hostCerts" : [

can be replaced by curl command result

],

"configureAllServices" : "true",

"sshPort" : 22,

"userName" : "root",

"password" : "cloudera"

}' 'http://ccycloud-7.vcdp71.root.hwx.site:7180/api/v41/cm/commands/generateCmca'

autotls-cdp's People

Contributors

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