Certificate with www, but not without www

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.

My domain is: https://www.ifmerchandising.com.ar/

I ran this command: https://gethttpsforfree.com/

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: (mt) mediatemplet.net (or godady)

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): yes, my host provide the CSR code to use at https://gethttpsforfree.com/ and like a result import in my panel.

Use https://gethttpsforfree.com/ to create the let’s certificate with an initial CSR code that gives me (mt) but the final certificate only covers https://www.ifmerchandising.com.ar/ but not the https://ifmerchandising.com.ar/ or covers upside down.

The CSR determines the names that end up on the certificate. You will need to either generate one that has all names you wish to cover included, or you will need to ask whoever provided this CSR for a new one with all names listed.

1 Like

thank you very much for your reply
I understand what you tell me but there is no way that the provider gives me that possibility. : (

Is there a possibility to get your own CSR that includes both addresses?

Sure. But then you also need to send the key (that's generated with that CSR) to your host... (And they might not like it)

Thank you

1 Like

The host provide 3 files.

private.key
san2.cnf
sslcert.csr

But I don´t understand like to get the CSR in step 2 of https://gethttpsforfree.com/

Post the contents of these two files here (just not private.key).

They are safe to make public, and they will reveal how your host configured your CSR.

1 Like

san2.cnf

[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = req_ext
distinguished_name = dn

[ dn ]
C=AR
ST=Buenos Aires
L=Ciudad Autónoma De Buenos Aires
O=Treinta Sillas
OU=Testing Domain
emailAddress= leo.spinetto@gmail.com
CN = www.treintasillas.com

[ req_ext ]
subjectAltName = @alt_names

[ alt_names ]
DNS.1 = treintasillas.com
DNS.2 = www.treintasillas.com


sslcert.csr

-----BEGIN CERTIFICATE REQUEST-----
MIIDVjCCAj4CAQAwgcoxCzAJBgNVBAYTAkFSMRUwEwYDVQQIDAxCdWVub3MgQWly
ZXMxK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jJURedOU2W
-----END CERTIFICATE REQUEST-----

Right, OK. So that CSR is for a completely different domain (treintasillas.com, www.treintasillas.com) to the one you’re talking about (ifmerchandising.com.ar,www.ifmerchandising.com.ar).

Perhaps you can ask your host to send you a similar CSR for your other domain.

It is possible to generate it yourself if you have openssl installed locally, but it can be a little tricky.

1 Like

no, no, sorry thanks for your comments.

The problem that I have, I have it with all the domains even with the one of treintasillas.com

If you use that sslcert.csr as the CSR for gethttpsforfree.com, it WILL generate a certificate that covers both (www and www-less) domains.

As far as I can tell, you have not done that.

1 Like

mmm do you believe it?

I'm going to try it then, but it will probably work only for treintasillas.com

Many thanks.

Yes. To know whether you're doing it right, BOTH domains should appear in Step 4, like in this screenshot: Take screenshots in Firefox | Firefox Help

By the way, if you find that site too user-unfriendly, you can also try Free SSL Certificates and SSL Tools - ZeroSSL , which does the same thing in a "prettier" way.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.