code: def generate_ecdsap256_server_certificate(server_id, server_pub_key, expiry,
                                          root_id, root_priv_key):
      
      cert = ECDSAP256ServerCertificate()
      rc = _lib.xtt_generate_server_certificate_ecdsap256(cert.native,
                                                          server_id.native,
                                                          server_pub_key.native,
                                                          expiry.native,
                                                          root_id.native,
                                                          root_priv_key.native)
      if rc == RC.SUCCESS:
          return cert
      else:
          raise error_from_code(rc)
docs: Creates a new server certificate signed by the provided root.
  
      :param Identity server_id: the identity for the certificate
      :param ECDSAP256PublicKey server_pub_key: the public key for the certificate
      :param CertificateExpiry expiry: the expiry date for the certificate
      :param CertificateRootId root_id: the root identity to sign this certificate
      :param ECDSAP256PrivateKey root_priv_key: the root private key to sign this
                                              certificate