homepage: https://github.com/fcomb/pkcs10-hs#readme
changelog-type: ''
hash: cd170c2312cb509ae0d6c0e8a1d2a1607633803885746679d808314c3e34c2fc
test-bench-deps:
  bytestring: -any
  pkcs10: -any
  base: ! '>=4.3 && <5'
  pem: -any
  asn1-types: -any
  x509: -any
  cryptonite: -any
  asn1-parse: -any
  tasty-hunit: -any
  tasty: -any
  asn1-encoding: -any
maintainer: Timothy Klim <hackage@timothyklim.com>
synopsis: PKCS#10 library
changelog: ''
basic-deps:
  bytestring: -any
  base: ! '>=4.3 && <5'
  pem: -any
  asn1-types: -any
  memory: -any
  containers: -any
  x509: -any
  cryptonite: -any
  asn1-parse: -any
  asn1-encoding: -any
all-versions:
- '0.1.0.0'
author: Timothy Klim <hackage@timothyklim.com>
latest: '0.1.0.0'
description-type: markdown
description: ! "PKCS#10 library\n=========\n\n[![Build Status](https://travis-ci.org/fcomb/pkcs10-hs.svg)](https://travis-ci.org/fcomb/pkcs10-hs)\n\n###
  Example\n\n```haskell\nimport           Crypto.Hash\nimport           Crypto.PubKey.RSA\nimport
  \          Data.X509\nimport           Data.X509.PKCS10\n\nmain :: IO ()\nmain =
  do\n  let rsaKeySize = 128\n  let publicExponent = 3\n  (pubKey, privKey) <- generate
  rsaKeySize publicExponent\n  let subjectAttrs = makeX520Attributes [(X520CommonName,
  \"node.fcomb.io\"), (X520OrganizationName, \"fcomb\")]\n  let extAttrs = PKCS9Attributes
  [PKCS9Attribute $ ExtBasicConstraints False Nothing, PKCS9Attribute $ ExtKeyUsage
  [KeyUsage_digitalSignature,KeyUsage_nonRepudiation,KeyUsage_keyEncipherment]]\n
  \ Right req <- generateCSR subjectAttrs extAttrs (KeyPairRSA pubKey privKey) SHA512\n
  \ putStrLn . show . toPEM $ req -- export in PEM format\n  putStrLn . show $ verify
  (csrToSigned req) $ PubKeyRSA pubKey -- sign CSR before verify\n```\n"
license-name: Apache-2.0

Update from Hackage at 2015-12-13T21:22:25+0000
Update from Hackage at 2015-12-13T21:22:25+0000
