forked from melihercan/WebRTCme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
67 lines (53 loc) · 2.47 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
SELF SIGNED CERT FOR .NET and IIS Express
=========================================
CREATE
------
openssl req -config localhost.config -new -out csr.pem
openssl x509 -req -days 3652 -sha256 -extfile localhost.config -extensions v3_req -in csr.pem -signkey key.pem -out localhost.crt
openssl pkcs12 -export -out localhost.pfx -inkey key.pem -in localhost.crt -password pass:_localhost_
openssl x509 -in localhost.crt -out localhost.pem
CHECK
-----
##openssl x509 -in csr.pem -noout -text -inform pem
##openssl x509 -in localhost.crt -noout -text -inform der
openssl.exe pkcs12 -info -in localhost.pfx
WINDOWS INSTALL
---------------
Search "Manage computer certificates" and open it.
Right click on "Personal/Certificates" and import pfx file.
Install crt file to LocalComputer "Trusted Root Certificates Authorities".
KESTREL INSTALLATION (USER)
---------------------------
# Install new certificate for .net core (Kestrel)
dotnet dev-certs https -v --clean --import localhost.pfx -p _localhost_
dotnet dev-certs https -v --trust
IIS EXPRESS INSTALLATION (SYSTEM)
---------------------------------
# Install new certificate for IIS Express
# Importing cert to store
- Key is required by IIS, so exporting CER file to LocalComputer\Personal will not work. Search "Manage computer certificates" and open it.
Right click on "Personal/Certificates" and import pfx file.
- Import crt file to LocalComputer "Trusted Root Certificates Authorities".
certhash: (get it from Thumprint) 54ee37f6d8ea85680fcebb336f7c9539b4036fce
Application ID : {214124cd-d05b-4309-9af9-9caa44b2b74a}
# Open administrative command window and go to "\Program Files (x86)\IIS Express".
# show current certificates
netsh http show sslcert
# delete existing certificates
for /L %i in (44300,1,44399) do IisExpressAdminCmd.exe deleteSslUrl -url:https://localhost:%i/
# add new certificates
for /L %i in (44300,1,44399) do netsh http add sslcert ipport=0.0.0.0:%i certhash=54ee37f6d8ea85680fcebb336f7c9539b4036fce appid={214124cd-d05b-4309-9af9-9caa44b2b74a}
ANDROID INSTALLATION
--------------------
# Push crt file to "/sdcard/Download"
adb push localhost.crt /sdcard/Download
# On phone Settings, Security, Encription & credentials use "Install from SD card"
IOS SIMULATION INSTALLATION
----------------
# Open simulation on Mac, grag and drop the cer file.
IOS PHONE INSTALL
-----------------
- email PEM file
- open on the phone and install
- General->About->Certificate Trus Serttings, enable full trust
USE SAFARI - CHROME DOES NOT WORK