forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
embedding the sample PFX files into the app gateway sample
- Loading branch information
unknown
authored and
unknown
committed
Dec 16, 2016
1 parent
9475b7e
commit 5c13ff6
Showing
3 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,8 @@ public static void main(String[] args) { | |
|
||
final String userName = "tirekicker"; | ||
final String sshKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfSPC2K7LZcFKEO+/t3dzmQYtrJFZNxOsbVgOVKietqHyvmYGHEC0J2wPdAqQ/63g/hhAEFRoyehM+rbeDri4txB3YFfnOK58jqdkyXzupWqXzOrlKY4Wz9SKjjN765+dqUITjKRIaAip1Ri137szRg71WnrmdP3SphTRlCx1Bk2nXqWPsclbRDCiZeF8QOTi4JqbmJyK5+0UqhqYRduun8ylAwKKQJ1NJt85sYIHn9f1Rfr6Tq2zS0wZ7DHbZL+zB5rSlAr8QyUdg/GQD+cmSs6LvPJKL78d6hMGk84ARtFo4A79ovwX/Fj01znDQkU6nJildfkaolH2rWFG/qttD [email protected]"; | ||
final String sslCertificatePfxPath = "myTest._pfx"; | ||
final String sslCertificatePfxPath2 = "myTest2._pfx"; | ||
|
||
int backendPools = 2; | ||
int vmCountInAPool = 4; | ||
|
@@ -270,7 +272,7 @@ public static void main(String[] args) { | |
.defineRequestRoutingRule("HTTPs-443-to-8080") | ||
.fromPublicFrontend() | ||
.fromFrontendHttpsPort(443) | ||
.withSslCertificateFromPfxFile(new File("myTest.pfx")) | ||
.withSslCertificateFromPfxFile(new File(sslCertificatePfxPath)) | ||
.withSslCertificatePassword("Abc123") | ||
.toBackendHttpPort(8080) | ||
.toBackendIpAddress(ipAddresses[1][0]) | ||
|
@@ -301,7 +303,7 @@ public static void main(String[] args) { | |
.defineRequestRoutingRule("HTTPs-1443-to-8080") | ||
.fromPublicFrontend() | ||
.fromFrontendHttpsPort(1443) | ||
.withSslCertificateFromPfxFile(new File("myTest2.pfx")) | ||
.withSslCertificateFromPfxFile(new File(sslCertificatePfxPath2)) | ||
.withSslCertificatePassword("Abc123") | ||
.toBackendHttpPort(8080) | ||
.toBackendIpAddress(ipAddresses[0][0]) | ||
|