summaryrefslogtreecommitdiffstats
path: root/schemas/sslca-cert.xsd
blob: 921c1c7c68c67ae4beb68fac792bde420d12a227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
  <xsd:annotation>
    <xsd:documentation>
      SSLCA cert.xml schema for bcfg2
      Chris St. Pierre
    </xsd:documentation>
  </xsd:annotation>

  <!-- cert.xml does not support Group or Client tags, but it should
       (and will, some day), so this is commented out for now -->
  <!--
  <xsd:complexType name="GroupType">
    <xsd:choice minOccurs="1" maxOccurs="unbounded">
      <xsd:element name="Cert" type="CertType"/>
      <xsd:element name="Group" type="GroupType"/>
      <xsd:element name="Client" type="GroupType"/>
    </xsd:choice>
    <xsd:attribute type="xsd:string" name="name" use="required"/>
    <xsd:attribute type="xsd:string" name="negate"/>
  </xsd:complexType>
  -->

  <xsd:complexType name="CertType">
    <xsd:attribute type="xsd:string" name="key" use="required"/>
    <xsd:attribute type="xsd:string" name="format"/>
    <xsd:attribute type="xsd:string" name="ca"/>
    <xsd:attribute type="xsd:integer" name="days"/>
    <xsd:attribute type="xsd:string" name="c"/>
    <xsd:attribute type="xsd:string" name="l"/>
    <xsd:attribute type="xsd:string" name="st"/>
    <xsd:attribute type="xsd:string" name="ou"/>
    <xsd:attribute type="xsd:string" name="o"/>
    <xsd:attribute type="xsd:string" name="emailaddress"/>
    <xsd:attribute type="xsd:string" name="append_chain"/>
  </xsd:complexType>

  <xsd:element name="CertInfo">
    <xsd:complexType>
      <xsd:choice minOccurs="1" maxOccurs="unbounded">
        <xsd:element name="Cert" type="CertType"/>
        <!--
        <xsd:element name="Group" type="GroupType"/>
        <xsd:element name="Client" type="GroupType"/>
        -->
      </xsd:choice>
    </xsd:complexType>
  </xsd:element>
</xsd:schema>