Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
@JuergenAuer
Thank you for the reply, I ran the installer again, but it isn’t showing me the techwittys.com
Could you please help me as to how I can create a certificate with both domain names?
@JuergenAuer Thank you again for the reply, after putting the command I am getting the following output. Could you guide me in the right direction as to how I can fix this?
There is a missing second alias. Add the non-www alias. And that’s not a “localhost”. Looks like you have created that configuration manual, so change it.
PS: @9peppe : If the vHost configuratiion is buggy, the -d option isn’t a good idea.
I assume I have to make some changes here, in the httpd.conf file of the server, could you please help me as to what I have to change in the following files? Sorry for the questions but I’m new to all this. Appreciate all the help so far.
If no, add both to the same virtualhost. If yes, add the redirect in a separate one.
Could you please help me as to how I can do so? Also I have posted the httpd.conf file in the above reply, could you let me know what changes I have to make so it works perfectly?
Thanks a lot!
in this case, remove your serveralias directive and set servername to techwittys.com
then, you add another virtualhost before all others and set it so that redirects to the main one. this virtualhost can either have a servername of www.techwittys.com or it might have a random one, it’s your default virtualhost, it will catch anything not defined elsewhere. Set it to www.techwittys.com if you want it to be easier, as certbot will read that file and see the virtualhost.
if you want to go completely overboard, add a dns record like * 3000 in A @ so that every subdomain will default resolving to the second level domain. But then you might need a wildcard certificate.