olivier beyler:
To create the CSR I get the CSR template from
olivier beyler:
https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/#create-a-certificate-signing-request-object-to-send-to-the-kubernetes-api
olivier beyler:
and I proceed by step
olivier beyler:
I copy past only this part first:
olivier beyler:
apiVersion: <http://certificates.k8s.io/v1beta1|certificates.k8s.io/v1beta1>
kind: CertificateSigningRequest
metadata:
name:```
I add the name manually
olivier beyler:
then I copy past this part:
olivier beyler:
request: $(cat ```
olivier beyler:
I add the ‘akshay.scr’ manually
olivier beyler:
then I copy past this part:
olivier beyler:
usages:
- digital signature
- key encipherment
- server auth
EOF```
olivier beyler:
this evict some bad characters inside the file
olivier beyler:
on my screen at the end I can see that:
olivier beyler:
> apiVersion: <http://certificates.k8s.io/v1beta1|certificates.k8s.io/v1beta1>
> kind: CertificateSigningRequest
> metadata:
> name: akshay
> spec:
> request: $(cat akshay.csr | base64 | tr -d '\n')
> usages:
> - digital signature
> - key encipherment
> - server auth
> EOF
<http://certificatesigningrequest.certificates.k8s.io/akshay|certificatesigningrequest.certificates.k8s.io/akshay> created```
olivier beyler:
Is it also Ok for you <@UFCKJG9AP>?
kumar abhishek:
ya , I copied the entire part on notepad and then edited the servcer.csr and name of the csr and it worked
kumar abhishek:
are we allowed to open one notepad in actual test
olivier beyler:
as I mention before you cannot add another notepad
olivier beyler:
You can only use the notepad of the env test env
Kiran Reddy:
I did face the issue & i followed this
- cat akshay.csr | base64 | tr -d ‘\n’ –> First run this on your console & get the base64 value
- Later Paste that base64 Value in the CSR yaml.
kumar abhishek:
oh ok