Anyone can make me understand . . .

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:

&gt; apiVersion: <http://certificates.k8s.io/v1beta1|certificates.k8s.io/v1beta1>
&gt; kind: CertificateSigningRequest
&gt; metadata:
&gt;   name: akshay
&gt; spec:
&gt;   request: $(cat akshay.csr | base64 | tr -d '\n')
&gt;   usages:
&gt;   - digital signature
&gt;   - key encipherment
&gt;   - server auth
&gt; 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

  1. cat akshay.csr | base64 | tr -d ‘\n’ –> First run this on your console & get the base64 value
  2. 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 :slightly_smiling_face:

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.

  1. I did the cat akshay.csr | base64 | tr -d ‘\n

  2. Removed the master

  3. Copied it in the akshay.yaml file which is a CertificateSigningRequest object

  4. when i try to create “kubectl create -f akshay.yml”

  5. 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”,|…