code: public static X509CertificateHolder getX509CertificateHolder(TBSCertificate tbsCert, byte[] signature)
      {
          ASN1EncodableVector v = new ASN1EncodableVector();
  
          v.add(tbsCert);
          v.add(tbsCert.getSignature());
          v.add(new DERBitString(signature));
  
          return new X509CertificateHolder(Certificate.getInstance(new DERSequence(v)));
      }
docs: Build the structure of an X.509 certificate.
  
  @param tbsCert the to be signed structure
  @param signature the signature
  @return a X.509 certificate holder.