Quantcast
Channel: Azure Networking (DNS, Traffic Manager, VPN, VNET) forum
Viewing all articles
Browse latest Browse all 6513

Azure remote Cert error

$
0
0

Hi all

I have been trying to change my azure dns setting so I can specify a static DNS .

followed the guide here http://blogs.technet.com/b/cbernier/archive/2014/11/14/azure-dns-and-static-ips.aspx

then was getting an error connecting as I do not have a trusted third party cert installed.

then followed the guide here https://gallery.technet.microsoft.com/scriptcenter/Configures-Secure-Remote-b137f2fe to run the ps script to install it I get the error

VERBOSE: 10:04:11 a.m. - Completed Operation: Get Deployment
Get-AzureCertificate : Cannot validate argument on parameter 'Thumbprint'. The argument is null or empty. Provide an
argument that is not null or empty, and then try the command again.
At C:\InstallWinRMCertAzureVM.ps1:54 char:83
+ ... me -Thumbprint $WinRMCert -ThumbprintAlgorithm sha1
+                    ~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-AzureCertificate], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.WindowsAzure.Commands.ServiceManagement.Certi
   ficates.GetAzureCertificate

New-Object : Exception calling ".ctor" with "1" argument(s): "Cannot find the requested object.
"
At C:\InstallWinRMCertAzureVM.ps1:60 char:18
+     $CertToImport = New-Object System.Security.Cryptography.X509Certificates.X509Ce ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand

Exception calling "Add" with "1" argument(s): "Value cannot be null.
Parameter name: certificate"
At C:\InstallWinRMCertAzureVM.ps1:64 char:2
+     $store.Add($CertToImport)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentNullException

I then followed this up with trying to manually export and install the cert on my PC but get

PS C:\> Enter-PSSession -ComputerName ***.cloudapp.net -Port **** -Credential troy@fission.co.nz -UseSSL
Enter-PSSession : Connecting to remote server ubtbes.cloudapp.net failed with the following error message : The server
certificate on the destination computer (****.cloudapp.net:****) has the following errors:
The SSL certificate contains a common name (CN) that does not match the hostname. For more information, see the
about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ Enter-PSSession -ComputerName ****.cloudapp.net -Port **** -Credential troy@fi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (ubtbes.cloudapp.net:String) [Enter-PSSession], PSRemotingTransportExce
   ption
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

Would really appreciate any advice on either fixing this cert problem so I can connect or how I can connect not using ssl?

Kind regards

Troy


Viewing all articles
Browse latest Browse all 6513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>