Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
38d09cee
Commit
38d09cee
authored
Mar 05, 2008
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not ask for user info when setting up self signed cert
parent
83faad7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
setup-webconf
setup-webconf
+20
-1
No files found.
setup-webconf
View file @
38d09cee
...
...
@@ -56,6 +56,7 @@ ln -s /usr/share/acf/www/ /var/www/localhost/htdocs
SSLDIR
=
/etc/ssl/mini_httpd
SSLCNF
=
$SSLDIR
/mini_httpd.cnf
KEYFILE
=
$SSLDIR
/server.key
CRTFILE
=
$SSLDIR
/server.crt
PEMFILE
=
$SSLDIR
/server.pem
...
...
@@ -63,9 +64,27 @@ PEMFILE=$SSLDIR/server.pem
if
[
-f
$PEMFILE
]
;
then
echo
"
$PEMFILE
already exist."
else
mkdir
-p
$SSLDIR
cat
<<
EOF
>
$SSLCNF
[ req ]
default_bits = 1024
encrypt_key = yes
distinguished_name = req_dn
x509_extensions = cert_type
prompt = no
[ req_dn ]
OU=HTTPS server
CN=
$(
hostname
-f
)
emailAddress=postmaster@example.com
[ cert_type ]
nsCertType = server
EOF
echo
"Generating certificates for HTTPS..."
openssl genrsa 2048
>
$KEYFILE
openssl req
-new
-x509
-nodes
-sha1
-days
3650
-key
$KEYFILE
>
$CRTFILE
openssl req
-new
-x509
-nodes
-sha1
-days
3650
-key
$KEYFILE
\
-config
$SSLCNF
>
$CRTFILE
cat
$KEYFILE
>>
$CRTFILE
rm
$KEYFILE
mv
$CRTFILE
$PEMFILE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment