2013-04-28 10 views
7

Ho appena impostato la mia prima app che richiede ssl.Heroku: Endpoint SSL - subjectAltName non corrisponde a www.mydomain.com

È l'app RoR, ospitata su Heroku.

Ho aggiunto il componente aggiuntivo SSL Endpoint alla mia app. Ho acquistato un certificato SSL da DNSimple.

Quindi seguire queste istruzioni - https://devcenter.heroku.com/articles/ssl-certificate per concatenare i file necessari. Quindi li ho caricati sul mio server.

Fin qui tutto bene.

Seguendo queste istruzioni - https://devcenter.heroku.com/articles/ssl-endpoint#testing-your-certificate per il test il mio certificato sembra soddisfacente.

Ho aggiornato i miei record DNS con un CNAME che punta al mio Endpoint generato da Heroku.

heroku certs 

dà:

Endpoint      Common Name(s)       Expires    Trusted 
---------------------------- -------------------------------------- -------------------- ------- 
<generated_id>.herokussl.com www.mydomain.com, mydomain.com   2014-04-29 23:25 UTC True 

Ma quando provo:

curl -v https://www.mydomain.com 

ottengo:

* About to connect() to www.mydomain.com port 443 (#0) 
* Trying 107.20.162.205... connected 
* Connected to www.mydomain.com (107.20.162.205) port 443 (#0) 
* SSLv3, TLS handshake, Client hello (1): 
* SSLv3, TLS handshake, Server hello (2): 
* SSLv3, TLS handshake, CERT (11): 
* SSLv3, TLS handshake, Server finished (14): 
* SSLv3, TLS handshake, Client key exchange (16): 
* SSLv3, TLS change cipher, Client hello (1): 
* SSLv3, TLS handshake, Finished (20): 
* SSLv3, TLS change cipher, Client hello (1): 
* SSLv3, TLS handshake, Finished (20): 
* SSL connection using AES256-SHA 
* Server certificate: 
* subject: C=US; ST=California; L=San Francisco; O=Heroku, Inc.; CN=*.herokuapp.com 
* start date: 2011-04-11 00:00:00 GMT 
* expire date: 2014-04-15 12:00:00 GMT 
* subjectAltName does not match www.mydomain.com 
* Closing connection #0 
* SSLv3, TLS alert, Client hello (1): 
* SSL peer certificate or SSH remote key was not OK 
curl: (51) SSL peer certificate or SSH remote key was not OK 

Qualsiasi aiuto apprezzato.

+0

forse solo un ritardo di propagazione DNS? qual è il dominio attuale in uso? – kch

+0

@kch Grazie, immagino sia stato tutto funzionante. – veritas1

risposta

5

Non c'era niente di sbagliato nell'impostazione/configurazione - C'è stato un ritardo di circa 24 ore, quindi tutto ha funzionato come previsto.

Problemi correlati