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 /
avatar image
4
Question by Jason-H · Dec 15, 2015 at 05:19 PM · monosecurityhttpscertificatessl

How can I add a certificate to the Mono Trust store?

What I want to do:

I am trying to add a certificate to Unity to enable SSL connection. I preferably only want to approve one root certificate (GoDaddy G2 root certificate downloaded from https://certs.godaddy.com/repository).

Background

This page on Mono Security states that I can use certmgr.exe to add certificates to the mono trust store - http://www.mono-project.com/docs/faq/security/.

There seems to be no certmgr.exe within the mono/2.0 folder packaged with Unity (Unity\Editor\Data\Mono\lib\mono\2.0). Even though the .exe has been in mono since 1.1. The .exe does exist within the MonoBleedingEdge/4.5 folder however I believe there are different Trust stores for each folder so I believe I cannot use this.

Question

Am I able to use another tool / method to add the root certificate to the trust store? Or am I missing the location of the certmgr.exe in the 2.0 mono package?

Additional Notes

In case it makes a difference, I am trying to connect to a Learning Record Store through the Tincan API (new version of SCORM).

I have also posted this question to the Unity Forums: http://forum.unity3d.com/threads/how-can-i-add-a-certificate-to-the-mono-trust-store.374330/

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
1

Answer by mostafaberg · Feb 18, 2016 at 01:58 PM

I used mozroots to import the root certs, here's how i invoked it:

mono mozroots.exe --import --sync

and that's the output of the command:

 mono mozroots.exe --import --sync
 Mozilla Roots Importer - version 3.4.0.0
 Download and import trusted root certificates from Mozilla's MXR.
 Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.
 
 Downloading from 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1'...
 Importing certificates into user store...
 102 new root certificates were added to your trust store.
 Import process completed.

Please note that you can also run this on your player by calling something like this:

System.Diagnostics.Process.Start("mozroots","--import"); I haven't tested that though..

Also i found mozroots.exe on OS X in this directory:

/Applications/Unity/Unity.app/Contents/Frameworks/MonoBleedingEdge/lib/mono/4.5/mozroots.exe

hope that helps !

Comment
Add comment · Show 2 · 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
avatar image DAVcoHL · Apr 12, 2018 at 03:49 PM 0
Share

I was able to do this on Windows 10 with no problems, however my Android builds still throw errors regarding lack of CA root certificates - is there a way to package these certificates in a cross-platform build, or a way to access the certificates already on the Android device?

avatar image AzeExMachina DAVcoHL · Nov 27, 2019 at 02:11 PM 0
Share

How were you able to use mozroots on Windows 10? When I try to launch it from cmd I always get System.$$anonymous$$issing$$anonymous$$ethodException; $$anonymous$$ethod not found: Array.Reverse

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

32 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

Related Questions

Facebook for Android SSL Problem 0 Answers

Is it possible to do ssl certificate pinning in Unity iOS 1 Answer

Unity use of HTTPS 0 Answers

How to validate SSL certificates when using HttpWebRequest 2 Answers

How to accept self signed certificate 1 Answer


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