x509certificate

Certificate requirements for IdentityServer3?

一世执手 提交于 2019-12-08 04:52:29
I'm creating a certificate request from my domain controller for use in IdentityServer3 (ID3). In the "Key Usage" section of the Certificate Properties dialog, I see a list of key usages: CRL signing Data encipherment Decipher Only Digital Signature Encipher Only Key agreement Key encipherment Key certificate signing Non repudiation The question is straightforward: what key usages does ID3 require of its signing certificates? I can't find anything in the ID3 documentation besides "use a certificate". I suppose it's also possible that all certificates are created "equal", and the first question

Understand why pkcs7 block failed during verification using openssl

心不动则不痛 提交于 2019-12-08 03:39:52
问题 I've got PKCS#7 Der formatted file called p7 and an x509 certificate file called mroot.der.cer which matches the root certificate of p7 chain. I'd like to verify my p7 certificate chain using openssl using the following commands : First - convert my mroot trusted cert file to pem format. openssl x509 -in mroot.der.cer -inform der -outform PEM -out mroot.pem.cer Second - verify the root chain using mroot.pem.cer openssl smime -verify -CAfile mroot.pem.cer -in p7 -inform DER -out blabla However

“error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure” when generating self signed certificate for Identity Server 4

时光毁灭记忆、已成空白 提交于 2019-12-08 03:15:28
We're developing a microservices app on Kubernetes. One of the microservices is IdentityServer instance. Initially, I want to test the solution locally on Docker to make sure it works. For this purpose, I want to copy the certificate to appsettings.json. Eventually this value will be replaced by a Kubernetes secret. In my startup class this is how I'm trying to load my certificate: services.AddIdentityServer() .AddSigningCredential(GetIdentityServerCertificate()) .AddConfigurationStore(... private X509Certificate2 GetIdentityServerCertificate() { var clientSecret = Configuration["Certificate"]

How does this code extract the signature?

余生长醉 提交于 2019-12-08 03:02:48
问题 I have to debug an old PHP script from a developer who has left the company. I understand the most part of the code, except the following function. My question: What does... if($seq == 0x03 || $seq == 0x30) ...mean in context of extracting the signature out of an X.509 certificate? public function extractSignature($certPemString) { $bin = $this->ConvertPemToBinary($certPemString); if(empty($certPemString) || empty($bin)) { return false; } $bin = substr($bin,4); while(strlen($bin) > 1) { $seq

Cannot find the X.509 certificate after publishing

六月ゝ 毕业季﹏ 提交于 2019-12-08 02:15:22
问题 I am building a WCF service as in this article and facing trouble with X.509 certificate. When I debug, everything is OK. When I publish and run the application, I receive the error: Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindBySubjectName', FindValue 'WCFServer'. What troubleshooting steps can I take? The server is IIS 5.1 on Windows XP SP3 回答1: At a guess: it seems to be looking in the "CurrentUser" store

WCF Message security using certificates -

浪尽此生 提交于 2019-12-08 01:22:37
问题 I am trying to create a WCF service that will use message mode security with a certificate. When I run the service code, both in IIS and cassini I get the following message It is likely that certificate 'CN=TempCA' may not have a private key that is capable of key exchange or the process may not have access rights for the private key I have created certificates using the following commands makecert -n "CN=TempCA" -r -sv TempCA.pvk TempCA.cer -sky Exchange -pe makecert -sk SignedByCA -iv

Error: KeyUsage does not allow digital signatures - Java-applet + mutual SSL

走远了吗. 提交于 2019-12-08 01:04:22
问题 We have developed a webbased Java application running in Tomcat under IIS on Windows 2008. The website has 2-way (mutual) SSL enabled in IIS requiring the client to authenticate using a x.509 certificate (PKI) as part of SSL and this works fine with all our certificates using IE. The website also has a java-applet called ViewOne ImageViewer. This works fine with 2-way SSL with some of our certificates but with others we get the exception on the client (java 1.6) during SSL-handshake after the

How to P/Invoke CryptUIWizExport Function using .NET

社会主义新天地 提交于 2019-12-08 01:02:14
问题 Can anyone translate these two cryptui.dll functions/structures into C#.NET [dllimport] wrappers? I would like to P/Invoke the CryptUIWizExport function to display the Windows Certificate Export Wizard. In particular, I need to pass a .NET X509Certificate as a parameter into the CryptUIWizExport function. You help is much appreciated!!! CryptUIWizExport function BOOL WINAPI CryptUIWizExport( __in DWORD dwFlags, __in HWND hwndParent, __in LPCWSTR pwszWizardTitle, __in PCCRYPTUI_WIZ_EXPORT_INFO

x509certificate certpath validation

不羁岁月 提交于 2019-12-07 20:08:22
问题 Our use-case requires validating certificate revocation via OCSP on a PKIX set-up. My starting point was the code at this related question: OCSP Revocation on client certificate I'm doing it manually at the application level since tomcat doesn't support it. However, I'm having some trouble building the certPath and I think I'm missing some fundamental understanding. First I try to create the certPath for the incoming client x509Certificate. KeyStore store is initialized correctly and contains

Load certificate file into Certificate Object

我的未来我决定 提交于 2019-12-07 19:34:56
问题 I am trying to load certificate file into certificate object, but I am getting the below exception. java.security.cert.CertificateParsingException: invalid DER-encoded certificate data at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1701) at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:303) at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:532) at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:417) at java.security