Currently I am running with some issue where I need to write an utility in python to install certificate for an ingress in a namespace for given host & subject alt names. Any help will be much appreciated.
Python utility for cert generation
183 Views Asked by spot_aws AtThere are 2 best solutions below
rohanmehto2
On
If you want to request certificates dynamically on demand then consider using a ssl client which has a REST interface, for example CFSSL. Its pretty simple to keep it running as a server and requesting ssl certificates with lots of configuration options.
Also if you're looking for more managed stuff, also consider setting up Lemur. It is an open source software by Netflix which makes it a lot more easier to manage ssl certificates along with some added functionalities like role based access, sources, destinations and good old user interface.
You can run cfssl server inside a pod and use it internally to request certificates, of course after setting up a CA and ideally a subCA too. It already has a docker image which you can use directly with minimal configuration changes.
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in KUBERNETES-HELM
- Why tiller connect to localhost 8080 for kubernetes api?
- Helm and configmap checksum annotations
- Kubernetes Helm is interpreting the same value as true from --set but false if in values file
- Can't delete a Stateful Set in Kubernetes
- Helm configuration file incorrectly used
- kubernetes rolling update using helm
- Kubernetes Helm Chart If Condition Check
- connect to shell terminal of other container in a pod
- Error creating load balancer with static IP on GKE with stable/traefik chart
- Kubernetes fission setup error
- Best practices of Export/Import Keycloak data in Kubernetes
- Set value conditionally depending on Helm (first) install or upgrade?
- Nginx Controller upgrade is failing on Kubernetes 1.16.10 cluster
- Will Helm v3 continue to work by manually adding the deprecated stable repo?
- When do I put a subchart in the charts/ directory, dependencies in Chart.yaml, or requirements.yaml in Helm?
Related Questions in KUBERNETES-INGRESS
- Global static IP name on NGINX Ingress
- Nginx Controller upgrade is failing on Kubernetes 1.16.10 cluster
- write ingress rule for application running with context-root
- How to remove the server header from Kubernetes deployed applications
- Back-off restarting failed container kubernetes
- Stickiness not working on request header for Ambassador in Kubernetes
- Get error "unknown field "serviceName" in io.k8s.api.networking.v1.IngressBackend" when switch from v1beta1 to v1 in Kubernetes Ingress
- Minikube Ingress (Nginx Controller) not working
- How to setup Kubernetes NLB Load Balancer with target group "IP" based [AWS]?
- Ingress for TCP ports, is it possible to route to different services using the same port number in a similar way NGINX routes for http ports?
- Ingress controller gives "Service does not have any active Endpoint" only when app deployed in different namespace from ingress controller
- ingress always showing default backend - 404
- Multiple services on same url in kubernetes
- Kubernetes Route to Service using Ingress hostname | Keycloak
- Configure two environment for kubernetes within Azure
Related Questions in SUBJECT-ALTERNATIVE-NAME
- Python function to Create CSRs with SAN
- Dynamic SAN or Bypassing SAN Check for a server certificate
- Unable to authenticate server certificate due to trailing spaces
- Self signed SSL certificate: Subject Alternative Name (SAN) gets lost when signing
- CA signed X509 cert contains X509v3 extension "Subject Alternative Name" twice
- HttpClient: Certificate for www.recaptcha.com doesn't match any of the subject alternative names
- OpenSSL x509 certificates and wildcard hostname checking
- How to copy Common name to subject alternative name using openssl.cnf or through openssl cmd
- Retrieve RegisteredID from subjectAltName
- Getting Subject Alternate Names with Pkcs10CertificationRequest
- Subject Alternative Names for Localhost
- Get x509 certificate by subject alternate name - c++
- NiFi bypass host name verification in SSL context service
- lighttpd configuration - does lighttpd authenticate with an address, e.g. subjectAltNames=IP:192.168.1.20?
- Add Subject Alternate Name to self signed certificate using wincrypt
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can write the python utility and deploy it as deployment in Kubernetes.
You can deploy ingress controller or if you have already deployed ingress controller you can simply write the ingress rule and apply it to Kubernetes cluster.
For generating & managing SSL/TLS certificate you can use the cert-manager.
You can check this link : https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes