Skip to content

Commit

Permalink
remove sample.pem and use sha256 to generate the sample certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed May 15, 2017
1 parent 07e92bc commit 6626c12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 35 deletions.
4 changes: 2 additions & 2 deletions README.txt
Expand Up @@ -10,7 +10,7 @@ To get started do::
The server will come up on port 8080. You can create a new key encrypting key
using::

$ wget https://localhost:8080/new -O kek.dat --ca-certificate sample.pem \
$ wget https://localhost:8080/new -O kek.dat --ca-certificate sample.crt \
--post-data=""

or, if you want a more convenient tool::
Expand All @@ -21,7 +21,7 @@ The data encryption key can now be retrieved by posting the KEK to another
URL::

$ wget https://localhost:8080/key --header 'Content-Type: text/plain' \
--post-file kek.dat -O datakey.dat --ca-certificate sample.pem
--post-file kek.dat -O datakey.dat --ca-certificate sample.crt

or ::

Expand Down
3 changes: 1 addition & 2 deletions generate-sample-cert.sh
@@ -1,4 +1,3 @@
#!/bin/sh
openssl genrsa 1024 > sample.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key sample.key > sample.crt
cat sample.crt sample.key > sample.pem
openssl req -new -x509 -nodes -sha256 -days 3650 -key sample.key > sample.crt
31 changes: 0 additions & 31 deletions sample.pem

This file was deleted.

0 comments on commit 6626c12

Please sign in to comment.