Skip to content

Commit

Permalink
fixing ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
jullrich committed Nov 9, 2019
1 parent 536fa61 commit d182236
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.git
.gitignore
README.md
README_AWS.md
README_Ubuntu.md
SECURITY.md
privacy.md
Architecture.md
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
.crt
.key
.keypin
/etc/CA/
DB/*
DB/webserver.sqlite
server.crt
Expand All @@ -17,5 +16,3 @@ bin/db_builder.pyc
samplelogs/
etc/dshield.conf
.DS_Store
etc/CA
/etc/openssl.cnf
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM ubuntu:18.04
WORKDIR /usr/src/dshield
COPY . .
CMD ["bin/install.sh"]
EXPOSE 2223
EXPOSE 2222
EXPOSE 8000

1 change: 1 addition & 0 deletions etc/CA/ca.serial
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01
2 changes: 2 additions & 0 deletions etc/CA/certs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions etc/CA/keys/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
2 changes: 2 additions & 0 deletions etc/CA/requests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!.gitignore
40 changes: 40 additions & 0 deletions etc/openssl.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[ ca ]
default_ca = CA_default # The default ca section

[ CA_default ]

dir = /home/pi/install/dshield/bin//../etc/CA
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crls
database = $dir/index.txt # database index file.
new_certs_dir = $dir/certs
certificate = $dir/certs/dshieldca.crt
serial = $dir/ca.serial
private_key = $dir/keys/dshieldca.key
x509_extensions = usr_cert # The extentions to add to the cert
name_opt = ca_default
cert_opt = ca_default
default_days = 3650
default_crl_days = 30
default_md = default
preserve =no
policy = signing_policy

####################################################################
[ signing_policy ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional

####################################################################
[ signing_req ]
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer

basicConstraints = CA:FALSE
keyUsage = digitalSignature, keyEncipherment

0 comments on commit d182236

Please sign in to comment.