文档

​
​

Development

User Acquisition

Monetization

工业

Unity Version Control

DevOps

On-prem

Gluon

Editor plug-in

Open Unity Dashboard

Unity Version Control

此页面不支持所选语言。
​
​
Unity Version Control
  • Overview
  • Cloud Repositories organization update
  • Installation
  • Use UVCS with the Unity Editor
  • Unity Version Control plugins
  • Concepts
  • Tutorials
  • On-Prem
    • Server configuration
    • Client configuration
    • Manage On-Prem licenses
    • Stop, start, or restart server
    • Server administration console
    • Configure UVCS
    • Use server read-only mode
    • Back up and restore data
    • Archive revisions
    • Force client upgrades
    • SSL certificates
      • Create SSL certificates
      • Use SSL certificates
    • GitServer
    • Use SAML authentication with Microsoft Entra
  • Gluon
  • CLI and shortcut references
  • Release Notes
  1. Unity Version Control (previously Plastic SCM)

Create SSL certificates

Create self-signed SSL certificates and CA-signed SSL certificates.
阅读时间4 分钟
最后更新于 10 个月前

Use a self-signed SSL for application development and tests. If you create a certificate, you can avoid the cost of a certificate signed by an external certificate authority. You can create SSL certificates for Windows or Linux and macOS.

Create SSL certificates on Windows

Prerequisites

For Windows, you need the following tools:
注意
These tools are available in the Windows SDK. For more information, refer to the Microsoft Windows SDK documentation.
  • makecert
    (Makecert.exe) is a command line CryptoAPI tool that creates an X.509 certificate signed by a system test root key or another specified key. The certificate binds a certificate name to the public part of the key pair. The certificate saves to a file, a system certificate store, or both. For more information, refer to Microsoft MakeCert documentation.
  • pvk2pfx
    (Pvk2Pfx.exe) is a command line tool that transfers public key and private key information contained in
    .spc
    ,
    .cer
    , and
    .pvk
    files to a Personal Information Exchange (
    .pfx
    ) file. For more information, refer to the Microsoft Pvk2Pfx documentation.

Create a self signed certificate

Create a .pvk certificate is now ready to be used with the Unity Version Control (UVCS) server.
  1. Run the
    makecert
    command to generate the
    .pvk
    and
    .cer
    files:
    makecert -n "CN=TARDIS" -r -a sha1 -sky exchange -sv Tardis.pvk Tardis.cer
  2. Make a note of the password because you need it for the
    pvk2pfx
    command.
  3. Use the
    pvk2pfx
    tool to combine the generated .pvk and .cer files into the final .pfx file:
    pvk2pfx -pvk "Tardis.pvk" -spc "Tardis.cer" -pfx "Tardis.pfx" -pi <password>
注意
Name the
 .pvk
,
.cer
and
.pfx
files with the machine hostname where the UVCS server is installed. If you don't use the machine hostname, you continuously receive warnings to say that the certificate doesn't match the UVCS server hostname. In the example above, the server is called
Tardis
, so the resulting output files are labeled as
Tardis.pvk
,
Tardis.cer
and
Tardis.pfx
.

Create a CA signed certificate

You can use the Certificate Authority (CA) certificate to generate additional SSL certificates for other sites and services such as the UVCS server.
  1. Run the
    makecert
    command to generate the
    .pvk
    and
    .cer
    files:
    makecert -n "CN=My Company" -r -a sha1 -sv MyCompanyCA.pvk MyCompanyCA.cer
  2. Execute the following command to create an SSL certificate:
    makecert -n "CN=TARDIS" -iv MyCompanyCA.pvk -ic MyCompanyCA.cer -sky exchange -a sha1 -pe -sv "UvcsServerTardis.pvk" UvcsServerTardis.cer
  3. Execute the pvk2pfx command to combine the
    .pvk
    and
    .cer
    files to generate the
    .pfx
    file:
    pvk2pfx -pvk "UvcsServerTardis.pvk" -spc "UvcsServerTardis.cer" -pfx "UvscServerTardis.pfx" -pi <password>

Create SSL certificates on Linux and macOS

Prerequisites

For Linux and macOS, one of the most versatile SSL tools is
openssl
. This tool is an open-source implementation of the SSL protocol.
openssl
is commonly used to create the Certificate Signing Request (CSR) and private key for many different platforms. This tool comes with almost every Linux distribution, so it is usually already installed and ready to use.

Create a self signed certificate

Create a
.pfx
file to use with the Unity Version Control (UVCS) server.
  1. Execute the
    openssl
    command to create the
    .pem
    file:
    openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout key.pem -out key.pem
  2. Enter the information to incorporate into your certificate request. Note: For the
    Common Name
    value, you need to use the UVCS host name that your clients use to connect with the server machine.
  3. Run the following command to export the .pem certificate file into a .pfx file:
    openssl pkcs12 -export -out ssl-certificate.pfx -in key.pem -name "UVCS Certificate"

Create a CA signed certificate

  1. Execute the following
    openssl
    command:
    openssl genrsa -out rootCA.key 2048
  2. Execute the following command to use the
    rootCA.key
    to generate the self signed certificates:
    openssl req -x509 -new -nodes -days 3560 -key rootCA.key -out key.pem
  3. Run the following command to export the
    .pem
    file into a
    .pfx
    file:
    openssl pkcs12 -export -out ssl-certificate.pfx -in key.pem -name "UVCS Certificate"

Additional resources

  • Use SSL certificates.

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Create SSL certificates on Windows

      • Prerequisites

      • Create a self signed certificate

      • Create a CA signed certificate

    • Create SSL certificates on Linux and macOS

      • Prerequisites

      • Create a self signed certificate

      • Create a CA signed certificate

    • Additional resources


报告此页面的问题