diff options
author | Andrew Cady <d@jerkface.net> | 2016-01-22 20:06:10 -0500 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-01-22 20:06:10 -0500 |
commit | 7c7a91bfb50528a199b0b29d7dbab6b78028889a (patch) | |
tree | ca3cceaefefaf39da4917aeb72282af7bbd18615 | |
parent | f599e81c7a5625a79d56a14d03e6e36e12dbebd7 (diff) |
use HsOpenSSL version that actually works
-rw-r--r-- | acme.hs | 4 | ||||
-rw-r--r-- | stack.yaml | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -109,7 +109,7 @@ genKey privKeyFile = withOpenSSL $ do | |||
109 | pem <- writePKCS8PrivateKey kp Nothing | 109 | pem <- writePKCS8PrivateKey kp Nothing |
110 | writeFile privKeyFile pem | 110 | writeFile privKeyFile pem |
111 | 111 | ||
112 | genReq :: FilePath -> String -> IO String | 112 | genReq :: FilePath -> String -> IO LC.ByteString |
113 | genReq domainKeyFile domain = withOpenSSL $ do | 113 | genReq domainKeyFile domain = withOpenSSL $ do |
114 | Just (Keys priv pub) <- readKeyFile domainKeyFile | 114 | Just (Keys priv pub) <- readKeyFile domainKeyFile |
115 | Just dig <- getDigestByName "SHA256" | 115 | Just dig <- getDigestByName "SHA256" |
@@ -146,7 +146,7 @@ go CmdOpts{..} = do | |||
146 | 146 | ||
147 | Just keys <- readKeyFile privKeyFile | 147 | Just keys <- readKeyFile privKeyFile |
148 | 148 | ||
149 | doesFileExist domainCSRFile `otherwiseM` genReq domainKeyFile optDomain >>= writeFile domainCSRFile | 149 | doesFileExist domainCSRFile `otherwiseM` genReq domainKeyFile optDomain >>= LC.writeFile domainCSRFile |
150 | 150 | ||
151 | csrData <- B.readFile domainCSRFile | 151 | csrData <- B.readFile domainCSRFile |
152 | 152 | ||
@@ -8,7 +8,7 @@ packages: | |||
8 | - '.' | 8 | - '.' |
9 | - location: | 9 | - location: |
10 | git: git@github.com:afcady/HSOpenSSL.git | 10 | git: git@github.com:afcady/HSOpenSSL.git |
11 | commit: 217f85d1a5ab82e3d4791bfb9f841c9303d150c6 | 11 | commit: d120a92678da80cf8a992cc2b80c147730a05f83 |
12 | extra-dep: true | 12 | extra-dep: true |
13 | 13 | ||
14 | # Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) | 14 | # Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3) |