Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
avatar image
0
Question by ArthurSerre · Feb 22, 2017 at 09:18 AM · .netcertificate

Validating a certificate in Hololens

I am currently building a project for Hololens, using Visual Studio and Unity3D. This project uses external dll's, among which RestSharp and Manatee.Json. My application uses those libraries to make calls to Trello's API in C#.

Curently, my project runs perfectly on Unity's "Play mode". However, when I try to build the project, I get the following error :

 Assets\Scripts\Controller\RestController.cs(25,9): error CS0103: The name 'ServicePointManager' does not exist in the current context

Here is the incriminated line :

 ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

I believe I get the error because ServicePointManager is not part of .net Core, which is my build target.

I tried removing this line entirely, and the project manages to build properly. However, at runtime I get the following error :

 TlsException: Invalid certificate received from server. Error code: 0xffffffff80092012
 Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Mono.Security.X509.X509CertificateCollection certificates)

Googling the error yield solutions using the ServicePointManager.ServerCertificateValidationCallback method, which I can't use do due to .net Core restrictions.

What is the proper way to validate my certificate for Hololens ?


Curent Settings:

  • Unity 5.5.1f1 & HoloToolkit v 1.5.5.0

  • Build settings : SDK Universal 10, Target device Hololens, Build Type D3D

  • Compilation override : Use Net Core

  • On all my DLL's : Checkbox "Don't Process" ticked

Comment
Add comment · Show 1
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
avatar image Gian-Luca · Jan 09, 2018 at 10:52 AM 0
Share

Hey, I have the exact same problem that I can't use the ServicePoint$$anonymous$$anager. Did you find any solution to this? Thanks!

0 Replies

· Add your reply
  • Sort: 

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.

Follow this Question

Answers Answers and Comments

96 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

Related Questions

Is it possible to Run R Code from Unity C# in Mono or .NET? 0 Answers

When launching VR application from external program, VR fails to initialise.,When Launching a Steam VR build from a external application VR is not enabled. 0 Answers

[Unity 2017 bug] .NET 4.6 Dll's references problem 0 Answers

PlatformNotSupportedException: 32feet.NET does not support the Bluetooth stack on this device.,PlatformNotSupportedException: 32feet.NET does not support the Bluetooth stack on this device 1 Answer

question about unity capabilities 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