ssl-certificate

curl: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate

房东的猫 提交于 2020-06-22 12:48:12
问题 C:\Users\casta>curl https://c5.ppy.sh curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate. I've made my own CA, and I made a certificate from this CA. The problem is, when I tried to access website with this certificate, It works fine! but If I tried with curl or C# applications, It returns error. C# error is here: 2019-02-28T09:20:33: System.Net.WebException: The request was

How to resolve ssl certificate errors for test automation in robot framework

让人想犯罪 __ 提交于 2020-06-16 20:25:51
问题 I'm getting ssl certificate error for our web application while running automation tests via robot framework. I tried below code with different chrome options but none of them worked that too with & without boolean value. ${list} = Create List --unsafely-treat-insecure-origin-as-secure=True ${args} = Create Dictionary args=${list} ${desired caps} = Create Dictionary chromeOptions=${args} open browser about:blank ${BROWSER} desired_capabilities=${desired_caps} Thank you in advance 回答1: Both

access SSL certificate in Azure Web App

半城伤御伤魂 提交于 2020-06-14 07:42:11
问题 I've uploaded an SSL certificate to my Azure Web App, running on Node, and now I'd like to access my certificate programmatically from my Node scripts to use it for signing JWTs. Is there a way to do this? I've found similar answers for C#, but I haven't been able to translate this into Node-world. Update Here is code that worked successfully, with help from @peter-pan-msft. Before running this code, I had to SFTP upload my SSL certificate to a private folder on the server. process.env.KEY =

ASP.NET Core Web API client does not trust self-signed certificate used by the Identity Server instance

故事扮演 提交于 2020-06-12 08:50:54
问题 This is a follow up of this question. I have generated and trusted a self-signed certificate using the following script: #create a SAN cert for both host.docker.internal and localhost #$cert = New-SelfSignedCertificate -DnsName "host.docker.internal", "localhost" -CertStoreLocation "cert:\LocalMachine\Root" # does not work: New-SelfSignedCertificate : A new certificate can only be installed into MY store. $cert = New-SelfSignedCertificate -DnsName "host.docker.internal", "localhost"

Nginx - how to access Client Certificate's Subject Alternative Name (SAN) field

不羁的心 提交于 2020-05-26 09:46:24
问题 I have an Nginx server which clients make requests to with a Client certificate containing a specific CN and SAN. I want to be able to extract the CN (Common Name) and SAN (Subject Alternative Names) fields of that client cert. rough example config: server { listen 443 ssl; ssl_client_certificate /etc/nginx/certs/client.crt; ssl_verify_client on; #400 if request without valid cert location / { root /usr/share/nginx/html; } location /auth_test { # do something with the CN and SAN. # tried

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

我只是一个虾纸丫 提交于 2020-05-25 19:58:30
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

一个人想着一个人 提交于 2020-05-25 19:58:21
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app

How to configure key settings for IdentityServer in appsettings.json for aspnet core app running on IIS

不想你离开。 提交于 2020-05-25 19:58:11
问题 I created the template Angular / ASP.NET Core with authorisation support using this command: dotnet new angular --auth Individual This is an: ASP.NET Core 3.0 App with ASP.NET Core Identity for authenticating and storing users, IdentityServer4 for implementing Open ID Connect, Angular SPA, All pre-configured to work together. Before I deploy my app based on this template, I'm trying to first deploy this template app to IIS. I've deployed the app to IIS and have a database setup and the app

Error: unable to verify the first certificate / How to trust all certificates?

心已入冬 提交于 2020-05-15 04:08:32
问题 When I try to install an extension I get this error: unable to verify the first certificate I already know that the problem is our internal network structure, which wraps every SSL Certificate with our own and not every application trusts our certificate. Is it possible to set the property Trust all SSL certificates in Visual Studio Code? Thanks 回答1: Had the same problem. Adding environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 fixed it. Took this answer from here: Ignore invalid self

Python Requests with wincertstore

若如初见. 提交于 2020-05-14 21:51:08
问题 I'm trying to connect to my corporate's internal webpages through the requests package, but since python does not use the windows default trusted certificates the connection is denied. I found out that wincertstore can be used to fetch the windows default certificates. But I'm still not sure how to use that along with the my request. Below is the code I have tried so far............. import requests, socket, atexit, ssl, wincertstore from requests.auth import HTTPBasicAuth certfile =