https security certificate not trusted error on mo

2019-04-21 07:56发布

I'm starting an app on openshift. I've purchased comodo positive ssl from namecheap and followed the instructions to install on openshift. It works fine on desktop browsers but i get the following "not trusted" error on android browsers. I have not tried IOS.

i uploaded following files to openshift:

  • stylistcity_com.crt

  • server.key

Other files i have that were not used include:

  • server.csr
  • server.pass.key
  • AddTrustExternalCARoot.crt
  • PositiveSSLCA2.crt

Any help would be appreciated.

Chrome

Firefox

matches domain

Cert chain

4条回答
何必那么认真
2楼-- · 2019-04-21 08:22

You have to add the intermediate certificate(s) (the other *.crt) too, because otherwise the browser is not able to verify the certificate chain up to the builtin trusted CA. The only reason that the verification with the desktop browsers succeed is because you already visited sites which use the same intermediate certificates and the browser cached them. If you would use a fresh browser setup (or a new profile with firefox) verification would there fail too.

查看更多
闹够了就滚
3楼-- · 2019-04-21 08:38

Thanks to @stenwt from the openshift irc channel, It finally work. Here is what i did.

cat mycert.crt cacert.ca > myapp.pem; rhc alias update-cert appname www.domain.com --certificate myapp.pem --private-key myapp.key --passphrase 'mypass'
查看更多
三岁会撩人
4楼-- · 2019-04-21 08:43

Had a bit of trouble with the method that worked for OP. For PositiveSSL, on OpenShift, this worked for me:

cat mydomain_com.crt COMODORSADomainValidationSecureServerCA.crt  COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > ssl-bundle.crt
rhc alias update-cert myappname www.mydomain.com --certificate ssl-bundle.crt --private-key mydomain_com.key --passphrase 'mypassphrase'

Replace mydomain_com.crt with your main domain cert from Comodo
Replace myappname with your OpenShift app name
Replace www.mydomain.com with your domain alias (the one on OpenShift for your app)
Replace mydomain_com.key with the filename for your private key
Replace mypassphrase with your SSL passphrase

查看更多
ゆ 、 Hurt°
5楼-- · 2019-04-21 08:45

I've opened certificate.ca.crt and certificate.crt, with conTEXT editor, I copied the contents of certificate.crt and have pasted to the principle of certificate.ca.crt and have saved as certificate.pem, after I've uploaded to OpenShift web console, in SSL certificate *, the first box. Fixed !!

查看更多
登录 后发表回答