This file is indexed.

/usr/share/doc/libghc-certificate-doc/html/Data-Certificate-X509-Cert.html is in libghc-certificate-doc 1.3.9-1build4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Certificate.X509.Cert</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Certificate-X509-Cert.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Certificate-X509-Cert.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">certificate-1.3.9: Certificates and Key Reader/Writer</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Data.Certificate.X509.Cert</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Data Structure
</a></li><li><a href="#g:2">Parse and encode a single distinguished name
</a></li><li><a href="#g:3">extensions
</a></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:SignatureALG">SignatureALG</a> <ul class="subs"><li>= <a href="#v:SignatureALG">SignatureALG</a> <a href="Data-Certificate-X509-Cert.html#t:HashALG">HashALG</a> <a href="Data-Certificate-X509-Cert.html#t:PubKeyALG">PubKeyALG</a>  </li><li>| <a href="#v:SignatureALG_Unknown">SignatureALG_Unknown</a> <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:HashALG">HashALG</a> <ul class="subs"><li>= <a href="#v:HashMD2">HashMD2</a>  </li><li>| <a href="#v:HashMD5">HashMD5</a>  </li><li>| <a href="#v:HashSHA1">HashSHA1</a>  </li><li>| <a href="#v:HashSHA224">HashSHA224</a>  </li><li>| <a href="#v:HashSHA256">HashSHA256</a>  </li><li>| <a href="#v:HashSHA384">HashSHA384</a>  </li><li>| <a href="#v:HashSHA512">HashSHA512</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:PubKeyALG">PubKeyALG</a> <ul class="subs"><li>= <a href="#v:PubKeyALG_RSA">PubKeyALG_RSA</a>  </li><li>| <a href="#v:PubKeyALG_DSA">PubKeyALG_DSA</a>  </li><li>| <a href="#v:PubKeyALG_ECDSA">PubKeyALG_ECDSA</a>  </li><li>| <a href="#v:PubKeyALG_DH">PubKeyALG_DH</a>  </li><li>| <a href="#v:PubKeyALG_Unknown">PubKeyALG_Unknown</a> <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:PubKey">PubKey</a> <ul class="subs"><li>= <a href="#v:PubKeyRSA">PubKeyRSA</a> <a href="/usr/share/doc/libghc-crypto-pubkey-types-doc/html/Crypto-Types-PubKey-RSA.html#t:PublicKey">PublicKey</a>  </li><li>| <a href="#v:PubKeyDSA">PubKeyDSA</a> <a href="/usr/share/doc/libghc-crypto-pubkey-types-doc/html/Crypto-Types-PubKey-DSA.html#t:PublicKey">PublicKey</a>  </li><li>| <a href="#v:PubKeyDH">PubKeyDH</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, ([<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>], <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>))  </li><li>| <a href="#v:PubKeyECDSA">PubKeyECDSA</a> <a href="Data-Certificate-X509-Cert.html#t:ECDSA_Hash">ECDSA_Hash</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a>  </li><li>| <a href="#v:PubKeyUnknown">PubKeyUnknown</a> <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>]  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:ECDSA_Hash">ECDSA_Hash</a>  = <a href="#v:ECDSA_Hash_SHA384">ECDSA_Hash_SHA384</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:ASN1StringType">ASN1StringType</a> <ul class="subs"><li>= <a href="#v:UTF8">UTF8</a>  </li><li>| <a href="#v:Printable">Printable</a>  </li><li>| <a href="#v:Univ">Univ</a>  </li><li>| <a href="#v:BMP">BMP</a>  </li><li>| <a href="#v:IA5">IA5</a>  </li><li>| <a href="#v:T61">T61</a>  </li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:ASN1String">ASN1String</a> = (<a href="Data-Certificate-X509-Cert.html#t:ASN1StringType">ASN1StringType</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Certificate">Certificate</a>  = <a href="#v:Certificate">Certificate</a> {<ul class="subs"><li><a href="#v:certVersion">certVersion</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></li><li><a href="#v:certSerial">certSerial</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></li><li><a href="#v:certSignatureAlg">certSignatureAlg</a> :: <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a></li><li><a href="#v:certIssuerDN">certIssuerDN</a> :: <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></li><li><a href="#v:certSubjectDN">certSubjectDN</a> :: <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></li><li><a href="#v:certValidity">certValidity</a> :: (Time, Time)</li><li><a href="#v:certPubKey">certPubKey</a> :: <a href="Data-Certificate-X509-Cert.html#t:PubKey">PubKey</a></li><li><a href="#v:certExtensions">certExtensions</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Data-Certificate-X509-Ext.html#t:ExtensionRaw">ExtensionRaw</a>]</li></ul>}</li><li class="src short"><span class="keyword">newtype</span>  <a href="#t:DistinguishedName">DistinguishedName</a>  = <a href="#v:DistinguishedName">DistinguishedName</a> {<ul class="subs"><li><a href="#v:getDistinguishedElements">getDistinguishedElements</a> :: [(<a href="Data-Certificate-X509-Cert.html#t:OID">OID</a>, <a href="Data-Certificate-X509-Cert.html#t:ASN1String">ASN1String</a>)]</li></ul>}</li><li class="src short"><span class="keyword">type</span> <a href="#t:OID">OID</a> = [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>]</li><li class="src short"><a href="#v:oidCommonName">oidCommonName</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></li><li class="src short"><a href="#v:oidCountry">oidCountry</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></li><li class="src short"><a href="#v:oidOrganization">oidOrganization</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></li><li class="src short"><a href="#v:oidOrganizationUnit">oidOrganizationUnit</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></li><li class="src short"><a href="#v:oidSig">oidSig</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a> -&gt; <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a></li><li class="src short"><a href="#v:sigOID">sigOID</a> :: <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a> -&gt; <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></li><li class="src short"><a href="#v:parseDN">parseDN</a> :: <a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Parse.html#t:ParseASN1">ParseASN1</a> <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></li><li class="src short"><a href="#v:encodeDNinner">encodeDNinner</a> :: (<a href="Data-Certificate-X509-Cert.html#t:ASN1String">ASN1String</a> -&gt; <a href="Data-Certificate-X509-Cert.html#t:ASN1String">ASN1String</a>) -&gt; <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a> -&gt; [<a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Stream.html#t:ASN1">ASN1</a>]</li><li class="src short"><a href="#v:encodeDN">encodeDN</a> :: <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a> -&gt; [<a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Stream.html#t:ASN1">ASN1</a>]</li><li class="src short">module <a href="Data-Certificate-X509-Ext.html">Data.Certificate.X509.Ext</a></li></ul></div><div id="interface"><h1 id="g:1">Data Structure
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:SignatureALG" class="def">SignatureALG</a>  <a href="src/Data-Certificate-X509-Cert.html#SignatureALG" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SignatureALG" class="def">SignatureALG</a> <a href="Data-Certificate-X509-Cert.html#t:HashALG">HashALG</a> <a href="Data-Certificate-X509-Cert.html#t:PubKeyALG">PubKeyALG</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:SignatureALG_Unknown" class="def">SignatureALG_Unknown</a> <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:SignatureALG" class="caption collapser" onclick="toggleSection('i:SignatureALG')">Instances</p><div id="section.i:SignatureALG" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:HashALG" class="def">HashALG</a>  <a href="src/Data-Certificate-X509-Cert.html#HashALG" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:HashMD2" class="def">HashMD2</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashMD5" class="def">HashMD5</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashSHA1" class="def">HashSHA1</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashSHA224" class="def">HashSHA224</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashSHA256" class="def">HashSHA256</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashSHA384" class="def">HashSHA384</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:HashSHA512" class="def">HashSHA512</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:HashALG" class="caption collapser" onclick="toggleSection('i:HashALG')">Instances</p><div id="section.i:HashALG" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:HashALG">HashALG</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:HashALG">HashALG</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:PubKeyALG" class="def">PubKeyALG</a>  <a href="src/Data-Certificate-X509-Cert.html#PubKeyALG" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PubKeyALG_RSA" class="def">PubKeyALG_RSA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PubKeyALG_DSA" class="def">PubKeyALG_DSA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PubKeyALG_ECDSA" class="def">PubKeyALG_ECDSA</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PubKeyALG_DH" class="def">PubKeyALG_DH</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:PubKeyALG_Unknown" class="def">PubKeyALG_Unknown</a> <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:PubKeyALG" class="caption collapser" onclick="toggleSection('i:PubKeyALG')">Instances</p><div id="section.i:PubKeyALG" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:PubKeyALG">PubKeyALG</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:PubKeyALG">PubKeyALG</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:PubKey" class="def">PubKey</a>  <a href="src/Data-Certificate-X509-Cert.html#PubKey" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PubKeyRSA" class="def">PubKeyRSA</a> <a href="/usr/share/doc/libghc-crypto-pubkey-types-doc/html/Crypto-Types-PubKey-RSA.html#t:PublicKey">PublicKey</a></td><td class="doc"><p>RSA public key
</p></td></tr><tr><td class="src"><a name="v:PubKeyDSA" class="def">PubKeyDSA</a> <a href="/usr/share/doc/libghc-crypto-pubkey-types-doc/html/Crypto-Types-PubKey-DSA.html#t:PublicKey">PublicKey</a></td><td class="doc"><p>DSA public key
</p></td></tr><tr><td class="src"><a name="v:PubKeyDH" class="def">PubKeyDH</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>, ([<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>], <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>))</td><td class="doc"><p>DH format with (p,g,q,j,(seed,pgenCounter))
</p></td></tr><tr><td class="src"><a name="v:PubKeyECDSA" class="def">PubKeyECDSA</a> <a href="Data-Certificate-X509-Cert.html#t:ECDSA_Hash">ECDSA_Hash</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></td><td class="doc"><p>ECDSA format not done yet FIXME
</p></td></tr><tr><td class="src"><a name="v:PubKeyUnknown" class="def">PubKeyUnknown</a> <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a> [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Word.html#t:Word8">Word8</a>]</td><td class="doc"><p>unrecognized format
</p></td></tr></table></div><div class="subs instances"><p id="control.i:PubKey" class="caption collapser" onclick="toggleSection('i:PubKey')">Instances</p><div id="section.i:PubKey" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:PubKey">PubKey</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:PubKey">PubKey</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ECDSA_Hash" class="def">ECDSA_Hash</a>  <a href="src/Data-Certificate-X509-Cert.html#ECDSA_Hash" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:ECDSA_Hash_SHA384" class="def">ECDSA_Hash_SHA384</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ECDSA_Hash" class="caption collapser" onclick="toggleSection('i:ECDSA_Hash')">Instances</p><div id="section.i:ECDSA_Hash" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:ECDSA_Hash">ECDSA_Hash</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:ECDSA_Hash">ECDSA_Hash</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:ASN1StringType" class="def">ASN1StringType</a>  <a href="src/Data-Certificate-X509-Cert.html#ASN1StringType" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:UTF8" class="def">UTF8</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Printable" class="def">Printable</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Univ" class="def">Univ</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:BMP" class="def">BMP</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:IA5" class="def">IA5</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:T61" class="def">T61</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:ASN1StringType" class="caption collapser" onclick="toggleSection('i:ASN1StringType')">Instances</p><div id="section.i:ASN1StringType" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Enum">Enum</a> <a href="Data-Certificate-X509-Cert.html#t:ASN1StringType">ASN1StringType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:ASN1StringType">ASN1StringType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Data-Certificate-X509-Cert.html#t:ASN1StringType">ASN1StringType</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:ASN1StringType">ASN1StringType</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:ASN1String" class="def">ASN1String</a> = (<a href="Data-Certificate-X509-Cert.html#t:ASN1StringType">ASN1StringType</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-String.html#t:String">String</a>)<a href="src/Data-Certificate-X509-Cert.html#ASN1String" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Certificate" class="def">Certificate</a>  <a href="src/Data-Certificate-X509-Cert.html#Certificate" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Certificate" class="def">Certificate</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:certVersion" class="def">certVersion</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></dt><dd class="doc"><p>Certificate Version
</p></dd><dt class="src"><a name="v:certSerial" class="def">certSerial</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a></dt><dd class="doc"><p>Certificate Serial number
</p></dd><dt class="src"><a name="v:certSignatureAlg" class="def">certSignatureAlg</a> :: <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a></dt><dd class="doc"><p>Certificate Signature algorithm
</p></dd><dt class="src"><a name="v:certIssuerDN" class="def">certIssuerDN</a> :: <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></dt><dd class="doc"><p>Certificate Issuer DN
</p></dd><dt class="src"><a name="v:certSubjectDN" class="def">certSubjectDN</a> :: <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></dt><dd class="doc"><p>Certificate Subject DN
</p></dd><dt class="src"><a name="v:certValidity" class="def">certValidity</a> :: (Time, Time)</dt><dd class="doc"><p>Certificate Validity period
</p></dd><dt class="src"><a name="v:certPubKey" class="def">certPubKey</a> :: <a href="Data-Certificate-X509-Cert.html#t:PubKey">PubKey</a></dt><dd class="doc"><p>Certificate Public key
</p></dd><dt class="src"><a name="v:certExtensions" class="def">certExtensions</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Data-Certificate-X509-Ext.html#t:ExtensionRaw">ExtensionRaw</a>]</dt><dd class="doc"><p>Certificate Extensions
</p></dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:Certificate" class="caption collapser" onclick="toggleSection('i:Certificate')">Instances</p><div id="section.i:Certificate" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:Certificate">Certificate</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:Certificate">Certificate</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Object.html#t:ASN1Object">ASN1Object</a> <a href="Data-Certificate-X509-Cert.html#t:Certificate">Certificate</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">newtype</span>  <a name="t:DistinguishedName" class="def">DistinguishedName</a>  <a href="src/Data-Certificate-X509-Cert.html#DistinguishedName" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:DistinguishedName" class="def">DistinguishedName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:getDistinguishedElements" class="def">getDistinguishedElements</a> :: [(<a href="Data-Certificate-X509-Cert.html#t:OID">OID</a>, <a href="Data-Certificate-X509-Cert.html#t:ASN1String">ASN1String</a>)]</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:DistinguishedName" class="caption collapser" onclick="toggleSection('i:DistinguishedName')">Instances</p><div id="section.i:DistinguishedName" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Eq.html#t:Eq">Eq</a> <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Ord.html#t:Ord">Ord</a> <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Text-Show.html#t:Show">Show</a> <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Monoid.html#t:Monoid">Monoid</a> <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:OID" class="def">OID</a> = [<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Integer">Integer</a>]<a href="src/Data-Certificate-X509-Internal.html#OID" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:oidCommonName" class="def">oidCommonName</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a><a href="src/Data-Certificate-X509-Cert.html#oidCommonName" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:oidCountry" class="def">oidCountry</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a><a href="src/Data-Certificate-X509-Cert.html#oidCountry" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:oidOrganization" class="def">oidOrganization</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a><a href="src/Data-Certificate-X509-Cert.html#oidOrganization" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:oidOrganizationUnit" class="def">oidOrganizationUnit</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a><a href="src/Data-Certificate-X509-Cert.html#oidOrganizationUnit" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:oidSig" class="def">oidSig</a> :: <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a> -&gt; <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a><a href="src/Data-Certificate-X509-Cert.html#oidSig" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sigOID" class="def">sigOID</a> :: <a href="Data-Certificate-X509-Cert.html#t:SignatureALG">SignatureALG</a> -&gt; <a href="Data-Certificate-X509-Cert.html#t:OID">OID</a><a href="src/Data-Certificate-X509-Cert.html#sigOID" class="link">Source</a></p></div><h1 id="g:2">Parse and encode a single distinguished name
</h1><div class="top"><p class="src"><a name="v:parseDN" class="def">parseDN</a> :: <a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Parse.html#t:ParseASN1">ParseASN1</a> <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a><a href="src/Data-Certificate-X509-Cert.html#parseDN" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:encodeDNinner" class="def">encodeDNinner</a> :: (<a href="Data-Certificate-X509-Cert.html#t:ASN1String">ASN1String</a> -&gt; <a href="Data-Certificate-X509-Cert.html#t:ASN1String">ASN1String</a>) -&gt; <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a> -&gt; [<a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Stream.html#t:ASN1">ASN1</a>]<a href="src/Data-Certificate-X509-Cert.html#encodeDNinner" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:encodeDN" class="def">encodeDN</a> :: <a href="Data-Certificate-X509-Cert.html#t:DistinguishedName">DistinguishedName</a> -&gt; [<a href="/usr/share/doc/libghc-asn1-data-doc/html/Data-ASN1-Stream.html#t:ASN1">ASN1</a>]<a href="src/Data-Certificate-X509-Cert.html#encodeDN" class="link">Source</a></p></div><h1 id="g:3">extensions
</h1><div class="top"><p class="src">module <a href="Data-Certificate-X509-Ext.html">Data.Certificate.X509.Ext</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>