Comments (6)
I mean $url instead of @url
from snipeitps.
Does Get-Asset work?
from snipeitps.
yes that does seem to work
from snipeitps.
It seems that when I do https with a self signed certificate it doesnt work.
from snipeitps.
@thebest07111 I had that issue aswell. This is what I added in my script to allow self signed certificates
if (-not("dummy" -as [type])) {
add-type -TypeDefinition @"
using System;
using System.Net;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
public static class Dummy {
public static bool ReturnTrue(object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors) { return true; }
public static RemoteCertificateValidationCallback GetDelegate() {
return new RemoteCertificateValidationCallback(Dummy.ReturnTrue);
}
}
"@
}
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = [dummy]::GetDelegate()
from snipeitps.
Other workaround could be importing servers self signed certificate to trusted certificate store on local computer.
As this was issue with self signed certificates, I'll close this now. Please reopen new issue if needed.
from snipeitps.
Related Issues (20)
- Issues with Set-SnipeITAsset HOT 2
- Set-SnipeitConsumable HOT 2
- Password required when making new user HOT 3
- Script stops before for loop is completed. Limit exceeded? HOT 3
- Using v1.10.222 with Snipe-IT v6.0.1 HOT 1
- Unable to access server once moved to https HOT 3
- Will not connect to on-prem non-SSL setup? HOT 1
- API Request throttling HOT 1
- Unable to Connect to SnipeItPS HOT 1
- Connect-SnipeitPS is erroring out HOT 1
- New-SnipeITuser returns 422 HOT 4
- Licence Checkout without specifying the seat id. HOT 3
- Update Status ID on Set-SnipeITAssetOwner HOT 1
- Create Functionality to Create and Modify Fieldsets
- Return MAC Address (custom fieldset) with "Get-SnipeITAsset -status 'Deployed'" HOT 1
- New-SnipeitUser -deleted param
- New-SnipeitLicense fails when license_email parameter provided
- Issue with Set-SnipeITAsset
- Issue with New-SnipeitAsset
- Forbidden: New-SnipeItAsset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snipeitps.