Quantcast
Channel: How to change Database password via MVC application
Viewing all articles
Browse latest Browse all 8

How to change Database password via MVC application

$
0
0

I did the following task

- created certificate through

keytool -genkeypair -alias mydomain -keyalg  RSA -keystore <Name of the keystore.> -keysize 2048 -storepass "<Password for the keystore>"

-exported it through

keytool -v -export -file C:\Azure\Certificate\<certificate name> -keystore <Keystore name> -alias mydomain

-uploaded the certificate to the Azure management certificate to my subscription

-Added it to "Microsoft Management Control"-certificate-personal

While making HttpWebRequest

https://management.core.windows.net:8443/559146b7-40d6-4686-9b5b-4c49b71e11c3/services/sqlservers/servers/vivek125kumar-test?op=ResetPassword

I get this in return

<Error xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/windowsazure">
  <Code>ForbiddenError</Code>
   <Message>The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.</Message>
</Error> 


Thanks and Regards Vivek Kumar


Viewing all articles
Browse latest Browse all 8

Trending Articles



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