OAuth Certificate via Powershell

If you like PowerShell and have been looking at the ‘Request-CsCertificate’ TechNet site, you’ll notice that it doesn’t say anything about requesting an OAuth certificate anywhere on there. (neither does it mention OAuth on Set-CsCertificate page). And it seems nobody is brave enough to talk about certificate in any detail without using the GUI. (to be fair, I’ve not looked that hard).

I would have thought that OAuth would have been listed on TechNet along with the other types, considering that every single deployment would have one, but I guess it’s only done once.

http://technet.microsoft.com/en-us/library/gg425723.aspx shows the following, it does hint that it “includes, but are not limited to, the following”.. No sign of OAuth.

Request-CsCertificate TypeBut you can use  -Type OAuth  as follows…

My above example is sent to an online Certificate Authority, and outputs…

Instead of specifying -CA you can put -Output certificate.req which will generate a Base64 encoded certificate request which you can send to your offline CA to get issued.

Once you have the certificate, you can use the normal commands to assign that certificate to OAuth.

And the usual commands to quickly confirm.

It also seems that both  OAuth  and  OAuthTokenIssuer  can be used interchangeably.

Tweet about this on TwitterShare on LinkedInShare on Facebook
Pin on PinterestShare on Google+Digg thisShare on RedditShare on StumbleUponEmail this to someone

About Graham Cropley

Working as a Senior Consultant for Skype for Business, Exchange, and Office 365.

Leave a Reply

Your email address will not be published. Required fields are marked *