Search Unity

UPM - Self-signed certificates

Discussion in 'Package Manager' started by JPFerreiraVB, May 3, 2019.

  1. JPFerreiraVB

    JPFerreiraVB

    Joined:
    Sep 18, 2017
    Posts:
    39
    Hi all!

    I'm trying to retrieve packages from a private repo, including unity packages and my own. But i'm having trouble making upm trust the repo certificate.

    So when i add this line on the manifest file:

    Code (JavaScript):
    1. {
    2.  
    3.   "registry": "https://nexus.intra.COMPANY.com/repository/unity-proxy/",
    4.  
    5.   "dependencies": {
    6.     "com.unity.ads": "2.3.1",
    7.     ......
    8.  
    i get this error on the editor.

    upload_2019-5-3_10-50-56.png


    I follow the steps on this page (https://docs.unity3d.com/Manual/upm-network.html)

    But i didn't found the upm-config.json location, so i created a folder called config, (C:\ProgramData\Unity\config) with the certificate and a upm-config.json, pointing to that certificate.

    upload_2019-5-3_10-58-27.png

    What do i need to change in order for this to work?

    Best regards
    João Ferreira
     
  2. erick_unity

    erick_unity

    Unity Technologies

    Joined:
    Jan 4, 2017
    Posts:
    41
    hi Joao, that part of the doc was released prematurely, this feature is only available in 2019.2.
    Is moving to a beta version an option for you? otherwise, what you could do is install 2019.2 somewhere, then grab that version of "UnityPackageManager.exe" and use that in your 2019.1 release instead.
     
  3. JPFerreiraVB

    JPFerreiraVB

    Joined:
    Sep 18, 2017
    Posts:
    39
    Thank you Erik, i did that workarround.

    Your colleague reply in PM to this thread
    https://forum.unity.com/threads/unable-to-use-package-manager-with-ssl-interception.667972/

    Another note, on this documentation (https://docs.unity3d.com/Manual/CustomPackages.html)
    The link in step 10, point to a not found page.

    Best regards