Heroku SSL using self signed certificate -


following steps of: https://devcenter.heroku.com/articles/ssl-endpoint have added ssl endpoint add-on server hosted on heroku.

then, i've created self signed certificate following: https://devcenter.heroku.com/articles/ssl-certificate-self

at point have upload self-signed cert , private key using:

heroku certs:add server.crt server.key 

in fact gaves me:

 !    unable parse certificate. please ensure certificate in pem format. 

but found simple solution on google:

openssl rsa -in server.key -out server.key.rsa

then 've uploaded all:

heroku certs:add server.crt server.key.rsa resolving trust chain... done adding ssl endpoint <myapp>... done <myapp> served wakayama-xxxx.herokussl.com certificate details: common name(s): <mydomain> expires at:     2016-09-29 11:24 utc issuer:         /c=au/st=some-state/o=internet widgits pty ltd/cn=<mydomain> starts at:      2015-09-30 11:24 utc subject:        /c=au/st=some-state/o=internet widgits pty ltd/cn=<mydomain> ssl certificate self signed. 

so if ask certificates heroku get:

heroku certs:info fetching ssl endpoint wakayama-xxxx.herokussl.com info <myapp>... done certificate details: common name(s): <mydomain> expires at:     2016-09-29 11:24 utc issuer:         /c=au/st=some-state/o=internet widgits pty ltd/cn=<mydomain> starts at:      2015-09-30 11:24 utc subject:        /c=au/st=some-state/o=internet widgits pty ltd/cn=<mydomain> ssl certificate self signed. 

so seems ok. except... if go wakayama-xxxx.herokussl.com see message: "heroku | no such app", hum, i've guess should me redirect app, not.

any ideas?

seems like: heroku ssl endpoint - "no such app"

so i've closed eyes , i've changed dns add cname pointing wakayama-xxxx.herokussl.com (which doesn't redirect app) , magically https works. if can explain what's happening here appreciate.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -