Nitin K
Nitin K

Reputation: 47

Service fabric stateless service authorization

I am trying to protect services exposed with remoting using certificate.

Service fabric does provide a mechanism to do it using X509Credentials class

Seems like it is trying to load the certificate from local store and cannot accept X509Certificate2 as a parameter .

Any idea how to achieve this ?

Upvotes: 0

Views: 223

Answers (1)

LoekD
LoekD

Reputation: 11470

There's good documentation about this here.

  • Create your service
  • Add listener settings and security credentials.
  • When you call methods on a secured service by using the remoting stack, use ServiceProxyFactory, provide FabricTransportRemotingSettings, with SecurityCredentials.

Upvotes: 1

Related Questions