• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Ghislo · Sep 10, 2018 at 07:32 PM · androidserverwwwcertificatessl

Server certificates on Android question

Hello everyone. So I built my apk (fully working in the editor with server as well) and I got the following error. I already checked manifest for internet permission.

 javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

T$$anonymous$$s happens when I try to communicate with my server through both WWW and UnityWebRequest functions. Checked with both "http" and "https". So, I found out it's a self-signed / missing intermediate certificate issue. I checked on DigiCert and found out my server has indeed untrusted certificates : alt text I decided the to install openssl plugin and test some more, so i run the following line in cmd :

 openssl s_client -debug -connect www.thedomaintocheck.com:443

and the logs that follows are some that I t$$anonymous$$nk are important. (i can give the full log if needed)

 ......
 depth=0 C = US, ST = Was$$anonymous$$ngton, L = Seattle, O = Odin, OU = Plesk, CN = Plesk, emailAddress = info@plesk.com
 verify error:num=18:self signed certificate
 verify return:1
 depth=0 C = US, ST = Was$$anonymous$$ngton, L = Seattle, O = Odin, OU = Plesk, CN = Plesk, emailAddress = info@plesk.com
 verify error:num=10:certificate has expired
 notAfter=May 20 07:48:11 2017 GMT
 verify return:1
 depth=0 C = US, ST = Was$$anonymous$$ngton, L = Seattle, O = Odin, OU = Plesk, CN = Plesk, emailAddress = info@plesk.com
 notAfter=May 20 07:48:11 2017 GMT
 verify return:1
 ......

and

 ......
     Certificate chain
      0 s:/C=US/ST=Was$$anonymous$$ngton/L=Seattle/O=Odin/OU=Plesk/CN=Plesk/emailAddress=info@plesk.com
        i:/C=US/ST=Was$$anonymous$$ngton/L=Seattle/O=Odin/OU=Plesk/CN=Plesk/emailAddress=info@plesk.com
     ---
     Server certificate
     -----BEGIN CERTIFICATE-----
     // stuff
     -----END CERTIFICATE-----
     subject=/C=US/ST=Was$$anonymous$$ngton/L=Seattle/O=Odin/OU=Plesk/CN=Plesk/emailAddress=info@plesk.com
     issuer=/C=US/ST=Was$$anonymous$$ngton/L=Seattle/O=Odin/OU=Plesk/CN=Plesk/emailAddress=info@plesk.com
     ---
     No client certificate CA names sent
     Peer signing digest: SHA512
     Server Temp Key: ECDH, P-256, 256 bits
     ---
     SSL handshake has read 1567 bytes and written 302 bytes
     Verification error: certificate has expired
     ......

and

 ......
 Start Time: 1536579311
 Timeout   : 7200 (sec)
 Verify return code: 10 (certificate has expired)
 Extended master secret: no
 ......

It's weird cause I get expired certificate w$$anonymous$$le the site before game me the following results.. alt text But I also get a self-signed certificate, so w$$anonymous$$ch one is causing to fail? So, how should I go on from t$$anonymous$$s? should I reach my server provider with t$$anonymous$$s data? Or maybe i have a way to install the intermediate certificates said above? But how do I know w$$anonymous$$ch ones? Thanks for your time!

debug2.png (9.6 kB)
debug3.png (16.0 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Ghislo · Sep 11, 2018 at 04:22 PM

Contacting the server provider with the same data posted here, helped them solving the problem for me.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

212 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity 5.6.7 - UnityWebRequest SSL/HTTPs 2 Answers

HTTPS + Android (sha2 certificate) 0 Answers

WWW with HTTPS on Android not working 0 Answers

Accept self-signed certificate using WWW 0 Answers

Android www ssl error 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges