'Extract the Certificate files - Self-Signed Certificate

I have created a self-signed certificate on my Kubernetes cluster. I can now see that the certificate is showing the status READY = True. When I describe the secret of this certificate, I can see the below.

Output of Secret

How do I extract the above files so I can use them to secure my website?



Solution 1:[1]

I found the answer. The keys are stored in the secret that we provide in the certificate.yaml file! I just had to do an edit secret and copied the content over.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Madhav N