Changeset 8445349


Ignore:
Timestamp:
09/11/14 08:04:55 (3 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.1
Children:
f869e43b, 8bca53a
Parents:
9b63009
Message:

Enable SSL by default for AppCafe?, and create a cert if the user hasn't
supplied one

Location:
src-webui/appweb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-webui/appweb/etc/appcafe.conf.dist

    rcbea7f6e r8445349  
    1414; openssl req -x509 -nodes -newkey rsa:2048 -keyout appcafe.key -out appcafe.crt -days 1024 
    1515; After place appcafe.key and appcafe.crt in /usr/local/etc and then set ssl = true below 
    16 ssl = false 
     16ssl = true 
    1717 
    1818; Set the mode to run AppCafe in (default will pick between server/desktop if X is installed) 
  • src-webui/appweb/rc.d/appcafe

    r01363ce r8445349  
    3131load_rc_config $name 
    3232 
     33ssl_keygen() 
     34{ 
     35        openssl req -x509 -nodes -newkey rsa:2048 \ 
     36                -keyout /usr/local/etc/appcafe.key \ 
     37                -out /usr/local/etc/appcafe.crt -days 1024 \ 
     38                -subj "/C=US/ST=MY/L=NULL/O=AppCafe/OU=AppCafe/CN=AppCafe/emailAddress=none@example.org" 
     39} 
     40 
    3341nginx_checktmpdir() 
    3442{ 
     
    5260  if [ "$ssl" = "true" ]; then 
    5361     conf="$required_files_ssl" 
     62     # Make sure to create any missing cert 
     63     if [ ! -e "/usr/local/etc/appcafe.crt" ] ; then ssl_keygen; fi 
    5464  fi 
    5565 
Note: See TracChangeset for help on using the changeset viewer.