certificate

Cannot exchange AccessToken from Google API inside Docker container

ぃ、小莉子 提交于 2020-01-04 06:32:38
问题 I have a web app written in Go, use oauth2 (package golang.org/x/oauth2 ) to sign user in by Google (follow this tutorial https://developers.google.com/identity/sign-in/web/server-side-flow). When I test app on local, it works fine but when I deploy app and run inside a Docker container (base on alpine:latest , run binary file), it has an error: Post https://accounts.google.com/o/oauth2/token: x509: certificate signed by unknown authority Here is my code to exchange the accessToken: ctx =

AD LDS through SSL on Windows Server 2012 R2

孤人 提交于 2020-01-03 21:15:32
问题 i am trying to configure my AD LDS instance to run through SSL so that i can connect to it from another computer using my application and perform password change operations. I installed the Certificate Authorities to create a Server certificate which i can use on my AD LDS instance. I added the certificate to the Personal Store of the AD LDS instance and gave read permission on the certificate for everyone (i couldn't find how to add only my AD LDS service name to it.) When i try to connect

How to verify Signature Value using cert file in C#?

本秂侑毒 提交于 2020-01-03 04:16:13
问题 I am noob in security sorry for that. I have an xml file which include, <?xml version="1.0" encoding="UTF-8" standalone="no"?> <ID_VG_Response> <Result> <SubjectDN>CN="XX", SERIALNUMBER=XX/XX, C=IN</SubjectDN> <UserIDN>XX</UserIDN> <CardNumber>XX</CardNumber> <TransactionType>XX</TransactionType> <Status>Success</Status> </Result> <Validity>180</Validity> <SignatureTime> <date>20150726</date> <time>15:01:51:927</time> </SignatureTime> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">

Adding certificate to trusted root authority

纵然是瞬间 提交于 2020-01-03 03:43:07
问题 I have moved to Windows Vista Business recently and am facing an issue with installng my networks cetiicate in the trusted root authority. on clicking on install certificate, i select the store where the certificat should be stored, which is Trusted Root Authorities-->Local Computer In XP. but in Vista i am not getting the Option to store on Local Computer. instead i only get Registry and Smart Card. Anyone who can help me to add the certificate in the Local computer Store? 回答1: i have just

java apis for certificate revocation checks

北城以北 提交于 2020-01-03 02:29:13
问题 Java supports OCSP out of the box. The way it is being done though, (I mean the revocation check) is transparent to the programmer. My question is, is there any api (part of java) that can create a valid OCSP request or response? So that it would be possible for a programmer to implement a custom OCSP checker? 回答1: The standard Java API does not provide publicly available classes to handle OCSP. In Sun/Oracle's JDK, the OCSP management classes are in the sun.security.provider.certpath package

PowerShell fails when trying to read certificate store with “The specified network resource or device is no longer available”

不问归期 提交于 2020-01-02 20:18:09
问题 I was trying to find a specific certificate on my machine, and I ran into an odd issue. I was seeing The specified network resource or device is no longer available errors when calling: Get-ChildItem -Path "XXXXX" -Recurse Where "XXXX" was the thumbprint of the certificate I was looking for. To try to narrow down the issue, I started by removing the thumbprint of my command (i.e. calling Get-ChildItem -Recurse ), and found that the script failed when trying to read from the UserDS certificate

Problems running/configure self hosted console application (ASP.net core 2.1, Kestrel) with public certificate on a windows webserver

≡放荡痞女 提交于 2020-01-02 17:54:07
问题 I have developed various webservices in the past (VB ASP.net web-api applications) with https for production. I have done the development with http and then setup https on the production servers. To setup a port on the production server for https and the certificate, I have: Imported a public certificate in the certificate store on the windows server configured a specific port for https with netsh. E.g: netsh http add urlacl url=https://+:22224/ user=everyone bound the certificate (over the

JVM to ignore certificate name mismatch

北战南征 提交于 2020-01-02 09:27:33
问题 I know there were a lot of questions/answers about how to ignore SSL error in the code. On our dev region dev.domain.tld we have configured a app server over SSL. The certificate that is displayed is for somedev.domain.tld . There is no way to change the certificate, it will always be a domain mismatch. So when I deploy a web-service to https://dev.domain.tld and try to connect/call my webservice I get an exception: Caused by: java.security.cert.CertificateException: No name matching dev

How to validate self-signed certification

一个人想着一个人 提交于 2020-01-02 08:43:09
问题 i will provide you with my question clearly so you can answer me I have a client-server (socket) connection that i secured using SslStream and as i know using ssl makes me sure that my client will only connect to my server And to do that i must add a function to my client to validate the server certification and make sure that the server is the real one (my server) but i really don't get how could i validate my self-signed certification and want your help Regards, and my thanks in advance 回答1

How to validate self-signed certification

大城市里の小女人 提交于 2020-01-02 08:41:24
问题 i will provide you with my question clearly so you can answer me I have a client-server (socket) connection that i secured using SslStream and as i know using ssl makes me sure that my client will only connect to my server And to do that i must add a function to my client to validate the server certification and make sure that the server is the real one (my server) but i really don't get how could i validate my self-signed certification and want your help Regards, and my thanks in advance 回答1