Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Ramss · Dec 16, 2021 at 05:20 PM · certificate

How to create a new self-signed wsa certificate with Customized validity in Unity 3D?

I created an application into UWP platform. So I am able to create a self-signed WSA certificate by doing below steps.

step1 : Publishing settings -> Certificate -> Create.
Step 2 : Enter Publisher name
Step 3 : Create

https://ibb.co/k4zCWsk

The above popup does not show any options for date modification. The WSA(.pfx) test certificate is generated. But with the default validity as 1 year. After generating the build, I need to open the .sln file to create the build from VS to generate .appx file. so that the WSA certificate needs to be selected for packaging needs to be selected as the image below.

https://ibb.co/Snqzkk7
I would like to edit the validity of this certificate to 5 years instead of the default validity duration, so that the application can be installed into any machine atleast till 5 years with out taking the build again.

Note : This application is not to publish on windows store.

Can anyone throw some light on it!!

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

Answer by Bunny83 · Dec 16, 2021 at 08:57 PM

Well, you should be able to create your own certifican using openssl. I just successfully created one using the two commands. I used the openssl installation that came with git (`C:\Program Files\Git\usr\bin`).

So first create a public / private key pair with this command

 openssl req -x509 -newkey rsa:4096 -sha256 -keyout my.key -out my.crt -subj "/CN=YourName" -days 1825

Note that instead of "my.key" and "my.crt" you should specify the full path to a folder where you can actually write the two files. You can not creates those files inside the "Program Files" folder as applications do not have write permission here. The CN could be whatever you like. I set the days to 1825 (==5 * 365). When you execute this command you should enter an encryption passphrase to secure the key twice.


Once you have your key you can execute the second command

 openssl pkcs12 -export -name “YourName” -out my.pfx -inkey my.key -in my.crt

Again make sure you use absolute paths for "my.pfx" and the two key files we have created in step 1. When you execute this command you should be prompted to enter the key passphrase from step 1 and after that you should enter an export passphrase for the certificate, again twice.

When this is done you should have a certificate that expires in 5 years. You can install the certificate on your local machine and copy it into your Unity project folder so you can select the certificate in the settings.

Comment
Add comment · Show 1 · 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 Ramss · Dec 17, 2021 at 07:49 AM 0
Share

Thank you very much for the quick response Bunny. I followed the steps mentioned and after installing the .pfx file, I did select the same which is generated - from the Unity editor.

alt text

But I got few errors like the screen shot attached eventhough I clearly entered the same export PWD from the CMD prompt. Do you have Any idea on this issue?

error.png (55.3 kB)

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

132 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

Related Questions

Facebook for Android SSL Problem 0 Answers

Upload certificate problem on Google Play Console 0 Answers

HTTPS + Android (sha2 certificate) 0 Answers

I want a Unity Certification in either 3D Modeling/Design or Scripting. What courses do I take? Is it okay to start learning towards the end of July? 0 Answers

packaging my .app 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