The client lacks sufficient authorization - 404

Add all the domains you want for that certificate on the command line;

./letsencrypt-auto certonly --webroot -w /var/www/default -d mydomain.net -d www.mydomain.net