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
kumar abhishek:
and the pattern and standard of ques is similar of what we are solving in this lab?
olivier beyler:
by signed the DNA I cannot answer your question
kumar abhishek:
I am sorry didn’t get u
kumar abhishek:
ok fine got you
kumar abhishek:
I am not sure but I am just asking the standard. anyway np
GVP:
U have ‘master’ at the end. I did same thing and resolved by removing master at the end of encoded text
Hi All, I am facing this issue.
-
I did the cat akshay.csr | base64 | tr -d ‘\n
-
Removed the master
-
Copied it in the akshay.yaml file which is a CertificateSigningRequest object
-
when i try to create “kubectl create -f akshay.yml”
-
I am facing below error
master $ kubectl create -f akshay.yml
Error from server (BadRequest): error when creating “akshay.yml”: CertificateSigningRequest in version “v1beta1” cannot be handled as a CertificateSigningRequest: v1beta1.CertificateSigningRequest.Spec: v1beta1.CertificateSigningRequestSpec.Usages: []v1beta1.KeyUsage: Request: decode base64: illegal base64 data at input byte 76, error found in #10 byte of …|tLS0tLQo=“,“usages”:|…, bigger context …|Ci0t LS0tRU5EIENFUlRJRklDQVRFIFJFUVVFU1QtLS0tLQo=”,“usages”:[“digital signature”,“key encipherment”,|…