title: How to add a certificate to Kong. To make https requests
body: <p>I am trying to add a certificate using this documentation <a href="https://docs.konghq.com/1.1.x/admin-api/#update-or-create-certificate" rel="nofollow noreferrer">kong docs</a></p>
  
  <p>But I am unable to figure out how to generate these "cert" and "key" pem files.</p>
  
  <p>I tried with public and private keys generated by puttygen and did not workout.</p>
  
  <p>A sample will be extremely helpful</p>
  
  <pre><code>{
  "message": "3 schema violations (cert: invalid certificate: x509.cert.new: asn1_lib.c:101:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long; key: invalid key: pkey.new: tasn_dec.c:1130:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag; tags: expected a set)",
  "name": "schema violation",
  "fields": {
      "tags": "expected a set",
      "cert": "invalid certificate: x509.cert.new: asn1_lib.c:101:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long",
      "key": "invalid key: pkey.new: tasn_dec.c:1130:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag"
  },
  "code": 2
  }
  </code></pre>
  
  <p>This is the error I received</p>