Want to setup Issuer in K8s, It requires ca.crt and ca.key. Once issuer is setup, leaf certificate can be generated.
I am not able to setup Issuer with Lets encrypt. How can I get root/intermediate ca and its key from Let’s encrypt. I need steps/commands to follow.
My domain is: gcdo.in
I ran this command:
Harishs-MacBook-Air:letsEncrypt harora37$ kubectl create secret tls caakey --key=isrgrootx1.pem --cert=isrg-root-ocsp-x1.pem
It produced this output:
error: failed to load key pair tls: found a certificate rather than a key in the PEM for the private key
My web server is (include version): Kubernetes
The operating system my web server runs on is (include version): any
My hosting provider, if applicable, is: godaddy
I can login to a root shell on my machine (yes or no, or I don’t know): yes,
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): NO
What you’re trying to do is become a publicly trusted CA yourself, which is impossible. The ISRG X1 root key is not public, otherwise Let’s Encrypt would not be publicly trusted.
apiVersion: certmanager.k8s.io/v1alpha1
kind: Issuer
metadata:
name: letsencrypt-prod
namespace: edge-services
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: user@example.com
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: letsencrypt-prod
# Enable HTTP01 validations
http01: {}
Considering email will be replace with my email id. What and how to provide value to name under privateKeySecretRef
Will certificate issue using Certificate yml valid?