Office 365 Powershell Decryption Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Office 365 Powershell Decryption Error

L1 Bithead

I'm testing decryption on our PA-3020 and have found my Office 365 Powershell licensing script is failing to connect with the following error message:

 

New-PSSession : [ps.outlook.com] Connecting to remote server ps.outlook.com failed with the following error message :
WS-Management cannot process the request. The operation failed because of an HTTP error. The HTTP error (12175) is: A
security error occurred . For more information, see the about_Remote_Troubleshooting Help topic.

I've tried adding an FQDN based Address object for "ps.outlook.com" and assigning it to a No Decrypt rule, but that has not helped.

 

In the Monitor -> Traffic tab, I see what I think is the corresponding log entry, stating that application soap on port 443 had a session end reason of decrypt-error.  The destination address is a Microsoft address, but does not have a DNS reverse lookup entry.

1 accepted solution

Accepted Solutions

Cyber Elite
Cyber Elite

@CastawayKid,

First and foremost the best way to do this is with a custom URL Cateogry; then add the associated URLs into that new entry. Like this. 

              <entry name="No-Decrypt">
                <list>
                  <member>ps.outlook.com</member>
                </list>

Then you'll need to create another decryption policy that is setup with an action of no-decrypt, placed higher in your decryption policies than your existing policy. 

So essentially it would look like this. 

                <entry name="No-Decrypt - LTSB">
                  <category>
                    <member>No-Decrypt</member>
                  </category>
                  <service>
                    <member>any</member>
                  </service>
                  <type>
                    <ssl-forward-proxy/>
                  </type>
                  <from>
                    <member>inside</member>
                  </from>
                  <to>
                    <member>outside</member>
                  </to>
                  <source>
                    <member>yourip</member>
                  </source>
                  <destination>
                    <member>any</member>
                  </destination>
                  <source-user>
                    <member>any</member>
                  </source-user>
                  <action>no-decrypt</action>
                </entry>

And that should do it. It will now looks specifically for the ps.outlook.com entry, and this will bypass decryption. 

View solution in original post

8 REPLIES 8

Cyber Elite
Cyber Elite

@CastawayKid,

First and foremost the best way to do this is with a custom URL Cateogry; then add the associated URLs into that new entry. Like this. 

              <entry name="No-Decrypt">
                <list>
                  <member>ps.outlook.com</member>
                </list>

Then you'll need to create another decryption policy that is setup with an action of no-decrypt, placed higher in your decryption policies than your existing policy. 

So essentially it would look like this. 

                <entry name="No-Decrypt - LTSB">
                  <category>
                    <member>No-Decrypt</member>
                  </category>
                  <service>
                    <member>any</member>
                  </service>
                  <type>
                    <ssl-forward-proxy/>
                  </type>
                  <from>
                    <member>inside</member>
                  </from>
                  <to>
                    <member>outside</member>
                  </to>
                  <source>
                    <member>yourip</member>
                  </source>
                  <destination>
                    <member>any</member>
                  </destination>
                  <source-user>
                    <member>any</member>
                  </source-user>
                  <action>no-decrypt</action>
                </entry>

And that should do it. It will now looks specifically for the ps.outlook.com entry, and this will bypass decryption. 

@BPry, Hi...

 

are you saying that placing this in a url category will act differently than adding it dirctly as an address object or did you miss this part by @CastawayKid.,,,

 

I've tried adding an FQDN based Address object for "ps.outlook.com"

 

 

@Mick_Ball,

If you add an FQDN based object it will resolve to a set of IP addresses; however when your working with Microsoft there are so many addresses that FQDN doesn't always work for all of them. It's better in these instances to simply utilize a URL Category. 

@BPry, nice one, many thanks for the info...

 

is this documented anywhere or just something you've learned along the way....?

@Mick_Ball,

Something that I've picked up along the way. I think that the article below that @reaper wrote a while back puts a lot of the limits of FQDN objects in place however. The biggest thing with FQDN is that it limits the IPs to the first 10 addresses that it receives in the DHCP request; when working with larger FQDN objects (like anything Microsoft or AWS) then you're generally working with a lot more addresses than that. 

 

LINK

@BPry, superb, thanks again...

 

Just one last question,........ if any , what would be a preference between  URL category and DAG?

OK put that on hold for now...

 

I really need to understang DAG's first so will keep reading.

 

 

@Mick_Ball,

Almost any time I'm working with external objects I'll utilize a URL Category over DAG. I utilize DAG a lot for things like printer groups, remote offices, and stuff like that so I don't have to sit and update all of the necessary security policies. 

  • 1 accepted solution
  • 4379 Views
  • 8 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!