• 13

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Let's Encrypt on AWS EC2 - domain name mismatch

I tried to generate a SSL certificate with Let's Encrypt on my EC2 instance with an elastic IP associated to it.

The command I run is

./letsencrypt-auto certonly --standalone -d mariellaval.com -d www.mariellaval.com

Browsing https://mariellaval.com the connection is private, but browsing https://www.mariellaval.com it isn't because the Common Name of the certificate is the DNS of the elastic IP. Why?. What am I doing wrong?


This is my virtual host file:

<VirtualHost _default_:443>
  ServerName mariellaval.com:443
  ServerAlias www.mariellaval.com:443
  DocumentRoot /var/www/path/to/public
  SSLEngine on
  SSLCertificateFile    path/to/cert.pem
  SSLCertificateKeyFile path/to/privkey.pem
  SSLProtocol all -SSLv2 -SSLv3
  SSLHonorCipherOrder on
  <Directory /var/www/path/to/public>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all

In the .htaccess i force the www, but I temporary disabled it to figure out the certificate problem.

Trending Tags