Changes

From SME Server
Jump to navigationJump to search
56 bytes removed ,  03:09, 16 August 2023
Line 150: Line 150:  
Create a script to make certs<syntaxhighlight lang="bash">
 
Create a script to make certs<syntaxhighlight lang="bash">
 
mkdir -p ~/bin
 
mkdir -p ~/bin
nano ~/bin/koji_make_cert.sh
+
cat <<_EOT > ~/bin/koji_make_cert.sh
</syntaxhighlight>and add the following<syntaxhighlight lang="bash">
   
#!/bin/bash
 
#!/bin/bash
 
# if you change your certificate authority name to something else you will
 
# if you change your certificate authority name to something else you will
Line 168: Line 167:  
cat certs/${user}.crt private/${user}.key > ${user}.pem
 
cat certs/${user}.crt private/${user}.key > ${user}.pem
 
mv ssl2.cnf confs/${user}-ssl.cnf
 
mv ssl2.cnf confs/${user}-ssl.cnf
 +
_EOT
 
</syntaxhighlight>and make it executable<syntaxhighlight lang="bash">
 
</syntaxhighlight>and make it executable<syntaxhighlight lang="bash">
 
chmod a+x ~/bin/koji_make_cert.sh
 
chmod a+x ~/bin/koji_make_cert.sh
381

edits

Navigation menu