summaryrefslogtreecommitdiffstats
path: root/schemas
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-06 09:11:26 -0500
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-11-06 09:54:52 -0500
commit0200b3e4ffc1cff798f85f07da0b27b47a5bfba7 (patch)
tree6e2a15f23210c81fad27437377043fc86b36cde8 /schemas
parent3dd5bebdbbeadf496f65bfac3c485c8e4fac0427 (diff)
downloadbcfg2-0200b3e4ffc1cff798f85f07da0b27b47a5bfba7.tar.gz
bcfg2-0200b3e4ffc1cff798f85f07da0b27b47a5bfba7.tar.bz2
bcfg2-0200b3e4ffc1cff798f85f07da0b27b47a5bfba7.zip
added XML schemas for SSLCA key/cert files
Diffstat (limited to 'schemas')
-rw-r--r--schemas/sslca-cert.xsd48
-rw-r--r--schemas/sslca-key.xsd39
2 files changed, 87 insertions, 0 deletions
diff --git a/schemas/sslca-cert.xsd b/schemas/sslca-cert.xsd
new file mode 100644
index 000000000..921c1c7c6
--- /dev/null
+++ b/schemas/sslca-cert.xsd
@@ -0,0 +1,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>
diff --git a/schemas/sslca-key.xsd b/schemas/sslca-key.xsd
new file mode 100644
index 000000000..2c931fa7d
--- /dev/null
+++ b/schemas/sslca-key.xsd
@@ -0,0 +1,39 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+ <xsd:annotation>
+ <xsd:documentation>
+ SSLCA key.xml schema for bcfg2
+ Chris St. Pierre
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <!-- key.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="Key" type="KeyType"/>
+ <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="KeyType">
+ <xsd:attribute type="xsd:string" name="type"/>
+ <xsd:attribute type="xsd:string" name="bits"/>
+ </xsd:complexType>
+
+ <xsd:element name="KeyInfo">
+ <xsd:complexType>
+ <xsd:choice minOccurs="1" maxOccurs="unbounded">
+ <xsd:element name="Key" type="KeyType"/>
+ <!--
+ <xsd:element name="Group" type="GroupType"/>
+ <xsd:element name="Client" type="GroupType"/>
+ -->
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+</xsd:schema>