Microsoft Azure Essentials Fundamentals of Azure Second Edition e-optimized 5x11 pdf


  Right-click the ContosoP2SRoot certificate and select All Tasks > Export. This opens the Export  dialog box. Click Next.  12



Download 8,71 Mb.
Pdf ko'rish
bet167/260
Sana16.09.2021
Hajmi8,71 Mb.
#176022
1   ...   163   164   165   166   167   168   169   170   ...   260
Bog'liq
9781509302963 Microsoft Azure Essentials Fundamentals of Azure 2nd ed pdf

11. 
Right-click the ContosoP2SRoot certificate and select All Tasks > Export. This opens the Export 
dialog box. Click Next. 
12. 
Select No, Do Not Export The Private Key, then click Next.  
13. 
Select Base-64 Encoded X.509 (.CER), then click Next.  
14. 
Specify the location where you want the file created and the name of the file. This demo will use 
ContosoP2SRoot_NoPk.pfx. Click Save to accept the name and then click Next on the Certificate 
Export Wizard page. On the next page, click Finish. It will now export the root certificate to the 
location specified. Leave the Certificate Manager open; you’re going to need it to manage the 
client certificate in a minute. 
15. 
Now you have to upload the root certificate file to Azure. Using Notepad, edit the .cer file you just 
created. First, remove the lines that say BEGIN CERTIFICATE and END CERTIFICATE. Now, the 
challenge is that the file has to be one continuous line, so if your file has line breaks in it, remove 
the ones on each line so your file is one continuous line of alphanumeric characters. Copy that 
entire line and put it in your PowerShell script, assigning it to a variable. In the example below, the 
value is truncated for readability. 
$MyP2SRootCertPubKeyBase64 = "MIIDUzCCAj+gAwIBAgIQRggGm…ThisIsVeryLong" 
 
 


155 
CHAPTER 5  |    Azure Virtual Networks 
 
Now upload the certificate.  
$p2srootcert = New-AzureRmVpnClientRootCertificate –Name $P2SRootCertName ` 
    -PublicCertData $MyP2SRootCertPubKeyBase64 
The next step is to create certificates for the VPN client.  
16. 
Create a self-signed client certificate using the root certificate you just created. The following 
command will create a client certificate with the name ContosoP2SClient:  
makecert.exe -n "CN=ContosoP2SClient" -pe -sky exchange -m 96 -ss My -in "ContosoP2SRoot" -is 
my -a sha1 
This creates and installs the client certificate on the local machine.  
To use that certificate on other client machines, you must export the certificate, copy it to the 
other machine, and import it. 
17. 
To export the client certificate to a file, go back to the Certificate Manager, find the certificate, and 
export it. Open Personal, then Certificates. You will see a list of certificates on the right side. Find 
the one issued by ContosoP2SRoot and issued to ContosoP2SClient. 

Download 8,71 Mb.

Do'stlaringiz bilan baham:
1   ...   163   164   165   166   167   168   169   170   ...   260




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish