191 | | 12. Install Letsencrypt and enable HTTPS: |
192 | | * |
193 | | {{{ |
194 | | add-apt-repository ppa:certbot/certbot |
195 | | }}} |
196 | | * |
197 | | {{{ |
198 | | apt install python-certbot-apache |
199 | | }}} |
200 | | * |
201 | | {{{ |
202 | | certbot --apache -d idp.YOUR-DOMAIN |
203 | | }}} |
204 | | |
205 | | {{{ |
206 | | Plugins selected: Authenticator apache, Installer apache |
207 | | Enter email address (used for urgent renewal and security notices) (Enter 'c' to |
208 | | cancel): YOU@YOUR-DOMAIN |
209 | | |
210 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
211 | | Please read the Terms of Service at |
212 | | https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must |
213 | | agree in order to register with the ACME server at |
214 | | https://acme-v02.api.letsencrypt.org/directory |
215 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
216 | | (A)gree/(C)ancel: A |
217 | | |
218 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
219 | | Would you be willing to share your email address with the Electronic Frontier |
220 | | Foundation, a founding partner of the Let's Encrypt project and the non-profit |
221 | | organization that develops Certbot? We'd like to send you email about our work |
222 | | encrypting the web, EFF news, campaigns, and ways to support digital freedom. |
223 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
224 | | (Y)es/(N)o: Y |
225 | | |
226 | | Obtaining a new certificate |
227 | | Performing the following challenges: |
228 | | http-01 challenge for idp.YOUR-DOMAIN |
229 | | Waiting for verification... |
230 | | Cleaning up challenges |
231 | | Created an SSL vhost at /etc/apache2/sites-available/idp-le-ssl.conf |
232 | | Enabled Apache socache_shmcb module |
233 | | Enabled Apache ssl module |
234 | | Deploying Certificate to VirtualHost /etc/apache2/sites-available/idp-le-ssl.conf |
235 | | Enabling available site: /etc/apache2/sites-available/idp-le-ssl.conf |
236 | | |
237 | | |
238 | | Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. |
239 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
240 | | 1: No redirect - Make no further changes to the webserver configuration. |
241 | | 2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for |
242 | | new sites, or if you're confident your site works on HTTPS. You can undo this |
243 | | change by editing your web server's configuration. |
244 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
245 | | Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2 |
246 | | Redirecting vhost in /etc/apache2/sites-enabled/rr3.conf to ssl vhost in /etc/apache2/sites-available/rr3-le-ssl.conf |
247 | | |
248 | | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
249 | | Congratulations! You have successfully enabled https://idp.YOUR-DOMAIN |
250 | | }}} |
251 | | |
252 | | |
253 | | |
254 | | 13. (OPTIONAL) If you haven't follow the letsencrypt method Create a Certificate and a Key self-signed for HTTPS |
| 191 | 12. Create a Certificate and a Key self-signed for HTTPS and enable secure web server. '''(Skip this step if you are installing IDP on production environment)''' |
| 276 | |
| 277 | 13. ('''Do this only on your production servers''') Skip '''step 12''' and Install Letsencrypt and enable HTTPS: |
| 278 | * |
| 279 | {{{ |
| 280 | add-apt-repository ppa:certbot/certbot |
| 281 | }}} |
| 282 | * |
| 283 | {{{ |
| 284 | apt install python-certbot-apache |
| 285 | }}} |
| 286 | * |
| 287 | {{{ |
| 288 | certbot --apache -d idp.YOUR-DOMAIN |
| 289 | }}} |
| 290 | |
| 291 | {{{ |
| 292 | Plugins selected: Authenticator apache, Installer apache |
| 293 | Enter email address (used for urgent renewal and security notices) (Enter 'c' to |
| 294 | cancel): YOU@YOUR-DOMAIN |
| 295 | |
| 296 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 297 | Please read the Terms of Service at |
| 298 | https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must |
| 299 | agree in order to register with the ACME server at |
| 300 | https://acme-v02.api.letsencrypt.org/directory |
| 301 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 302 | (A)gree/(C)ancel: A |
| 303 | |
| 304 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 305 | Would you be willing to share your email address with the Electronic Frontier |
| 306 | Foundation, a founding partner of the Let's Encrypt project and the non-profit |
| 307 | organization that develops Certbot? We'd like to send you email about our work |
| 308 | encrypting the web, EFF news, campaigns, and ways to support digital freedom. |
| 309 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 310 | (Y)es/(N)o: Y |
| 311 | |
| 312 | Obtaining a new certificate |
| 313 | Performing the following challenges: |
| 314 | http-01 challenge for idp.YOUR-DOMAIN |
| 315 | Waiting for verification... |
| 316 | Cleaning up challenges |
| 317 | Created an SSL vhost at /etc/apache2/sites-available/idp-le-ssl.conf |
| 318 | Enabled Apache socache_shmcb module |
| 319 | Enabled Apache ssl module |
| 320 | Deploying Certificate to VirtualHost /etc/apache2/sites-available/idp-le-ssl.conf |
| 321 | Enabling available site: /etc/apache2/sites-available/idp-le-ssl.conf |
| 322 | |
| 323 | |
| 324 | Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. |
| 325 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 326 | 1: No redirect - Make no further changes to the webserver configuration. |
| 327 | 2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for |
| 328 | new sites, or if you're confident your site works on HTTPS. You can undo this |
| 329 | change by editing your web server's configuration. |
| 330 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 331 | Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2 |
| 332 | Redirecting vhost in /etc/apache2/sites-enabled/rr3.conf to ssl vhost in /etc/apache2/sites-available/rr3-le-ssl.conf |
| 333 | |
| 334 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 335 | Congratulations! You have successfully enabled https://idp.YOUR-DOMAIN |
| 336 | }}} |
| 337 | |
| 338 | |