forked from nutechsoftware/ser2sock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
199 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
1. ./configure | ||
2. make | ||
3. sudo cp ser2sock /usr/local/bin/ | ||
4. sudo mkdir -p /etc/ser2sock | ||
5. sudo cp ser2sock.conf.example /etc/ser2sock/ser2sock.conf | ||
6. Make changes to /etc/ser2sock/ser2sock.conf as needed. | ||
4. sudo cp -R etc/ser2sock /etc/ | ||
5. Make changes to /etc/ser2sock/ser2sock.conf as needed. | ||
6. If using SSL generate certificates | ||
7. sudo cp init/ser2sock /etc/init.d/ | ||
8. sudo update-rc.d ser2sock defaults | ||
9. sudo /etc/init.d/ser2sock start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Mainly copied from: | ||
# https://swearingscience.com/2009/01/18/openssl-self-signed-ca/ | ||
|
||
[ ca ] | ||
default_ca = ser2sock | ||
|
||
[ crl_ext ] | ||
# issuerAltName=issuer:copy #this would copy the issuer name to altname | ||
authorityKeyIdentifier=keyid:always | ||
|
||
[ ser2sock ] | ||
dir = ./certs | ||
new_certs_dir = $dir | ||
unique_subject = no | ||
certificate = $dir/ca.pem | ||
database = $dir/certindex | ||
private_key = $dir/privkey.pem | ||
serial = $dir/ca.srl | ||
default_days = 730 | ||
default_md = sha1 | ||
policy = ser2sock_policy | ||
x509_extensions = ser2sock_extensions | ||
crlnumber = $dir/crlnumber | ||
default_crl_days = 730 | ||
|
||
[ ser2sock_policy ] | ||
commonName = supplied | ||
stateOrProvinceName = supplied | ||
countryName = optional | ||
emailAddress = optional | ||
organizationName = supplied | ||
organizationalUnitName = optional | ||
|
||
[ ser2sock_extensions ] | ||
basicConstraints = CA:false | ||
subjectKeyIdentifier = hash | ||
authorityKeyIdentifier = keyid:always | ||
keyUsage = digitalSignature,keyEncipherment | ||
extendedKeyUsage = serverAuth | ||
#crlDistributionPoints = URI:https://example.com/root.crl | ||
#subjectAltName = @alt_names | ||
|
||
#[alt_names] | ||
#DNS.1 = example.com | ||
#DNS.2 = *.example.com |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.