SSL 設定 Apache mac

 

/opt/local/apache2/conf

$ sudo openssl genrsa -des3 -out server.key 1024

 

f:id:hrt0kmt:20140103231344p:plain

 

$ sudo openssl req -new -key server.key -out server.csr

 

f:id:hrt0kmt:20140103231457p:plain

f:id:hrt0kmt:20140103231546p:plain

 

 

$ sudo openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
 
$ sudo cp server.key server.key.bak
 

$ sudo openssl rsa -in server.key.bak -out server.key
 

f:id:hrt0kmt:20140103231607p:plain

 

$ sudo cp server.crt /opt/local/apache2/conf/
 
$ sudo cp server.key /opt/local/apache2/conf/
 
httpd.confを下記のように編集
 

LoadModule ssl_module modules/mod_ssl.so

 
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf  
 
 
 

 

 

 

Brave

Brave

  • Sara Bareilles
  • Pop
  • ¥200