Last modified by Yana Oksner on 2026/01/08 12:04

From version 60.1
edited by Yana Oksner
on 2026/01/08 12:04
Change comment: There is no comment for this version
To version 59.1
edited by Aaron Rosenzweig
on 2023/11/13 11:58
Change comment: Renamed from xwiki:documentation.Development-SSL requests via https protocol

Summary

Details

Page properties
Parent
... ... @@ -1,1 +1,1 @@
1 -documentation.Home.How-tos.WebHome
1 +How-tos
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.yanasd
1 +XWiki.arosenzweig2
Content
... ... @@ -32,7 +32,7 @@
32 32  
33 33  Open terminal and follow the commands shown below in my transcript which is self-explanatory if you are familiar with Terminal...
34 34  
35 -{{code}}
35 +{{noformat}}
36 36  
37 37  mymac$ cd /etc/apache2/
38 38  mymac$ sudo -s
... ... @@ -41,12 +41,12 @@
41 41  bash-3.2# cd devsslcerts/
42 42  
43 43  
44 -{{/code}}
44 +{{/noformat}}
45 45  
46 46  Next run the one single openssl command that will make the two files we need in their final folder that we just created above.
47 47   Note you will be asked for a bunch of info for the certificate. Follow what I have done below. **In particular, enter "localhost" in the Common Name field!**
48 48  
49 -{{code}}
49 +{{noformat}}
50 50  
51 51  bash-3.2# openssl req -days 3650 -new -x509 -nodes -out localhost_server.crt -keyout localhost_server.key
52 52  
... ... @@ -78,7 +78,7 @@
78 78  -rw-r--r-- 1 root wheel 887 Jul 21 16:58 localhost_server.key
79 79  
80 80  
81 -{{/code}}
81 +{{/noformat}}
82 82  
83 83  === Configure Apache2 to Use Your Development Certificates for localhost ===
84 84  
... ... @@ -104,11 +104,11 @@
104 104  
105 105  Restart apache
106 106  
107 -{{code}}
107 +{{noformat}}
108 108  
109 109  bash-3.2# apachectl graceful
110 110  
111 -{{/code}}
111 +{{/noformat}}
112 112  
113 113  ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
114 114