x509certificate

What does the 'Z' mean in Unix timestamp '120314170138Z'?

百般思念 提交于 2020-02-09 06:30:46
问题 I have an X.509 certificate which has the following 2 timestamps: ['validFrom'] = String(13) "120314165227Z" ['validTo'] = String(13) "130314165227Z" What does the postfix character 'Z' mean. Does it specify the timezone? 回答1: Yes. 'Z' stands for Zulu time, which is also GMT and UTC. From http://en.wikipedia.org/wiki/Coordinated_Universal_Time: The UTC time zone is sometimes denoted by the letter Z—a reference to the equivalent nautical time zone (GMT), which has been denoted by a Z since

Consuming a SAML 2.0 assertion with ColdFusion - What do I do with a public key (.pem) file?

别等时光非礼了梦想. 提交于 2020-02-03 09:27:26
问题 I am tasked with getting our ColdFusion 9 app to receive a SAML assertion for single sign-on. We are the service provider. Thus far, I have used the only real source of information about ColdFusion and SAML at the following URL for guidance: http://blog.tagworldwide.com/?p=19 I have a sample SAML XML assertion from the identity provider and it looks very similar to the following example from Salesforce.com. <samlp:Response ID="_257f9d9e9fa14962c0803903a6ccad931245264310738" IssueInstant="2009

How to bypass SSL certificate validation in Android app?

安稳与你 提交于 2020-01-31 04:03:21
问题 My Android application should be able to communicate to any SSL enabled servers. As my app is demo application and my customers add their own SSL server details in the app while logging in, so upfront I don't know which SSL certificate I need to validate. Following is my earlier code. public SSLSocketFactory getSSLSocketFactory(String hostname) { try { HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() { public boolean verify(String hostname, SSLSession session) { return

How to parse(Convert to RSAParameters) X.509 private key in C#?

独自空忆成欢 提交于 2020-01-28 02:52:06
问题 I'm working on an encryption channel to encrypt the communication between two devices. So I'm creating a helper class to do the encryption and decryption. I've googled a lot and found a piece of code that can parse RSA Public Key Into RSACryptoServiceProvider . This is the code: public static RSACryptoServiceProvider DecodeX509PublicKey(byte[] x509key) { byte[] SeqOID = { 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00 }; byte[] seq = new byte[15];

IllegalArgumentException | certificate serial number

女生的网名这么多〃 提交于 2020-01-25 07:02:15
问题 java.lang.IllegalArgumentException at sun.security.provider.certpath.AdaptableX509CertSelector.setSerialNumber(AdaptableX509CertSelector.java:107) at java.security.cert.X509CertSelector.(X509CertSelector.java:283) at sun.security.provider.certpath.AdaptableX509CertSelector.(AdaptableX509CertSelector.java:50) at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:93) at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate

WCF service Unable to establish trust relationship for the SSL/TLS secure channel with authority

怎甘沉沦 提交于 2020-01-25 03:11:07
问题 I have a WCF service that I want to use to connect to an external provider's API. The Client constructor in my service looks like this: public partial class SomePortTypeClient : System.ServiceModel.ClientBase<SomeService.ClientPortType>, SomeService.SomePortType { static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); public SomePortTypeClient(string endpointUrl, TimeSpan

CyberSource on Azure

穿精又带淫゛_ 提交于 2020-01-23 18:20:09
问题 To do a request with CyberSource service you have to append .p12 certificate in request. Classic way of appending(CyberSource SDK): req.ClientCertificates.Add(new X509Certificate2(@"D:\cert\cert.p12", "password1")); This works perfectly on local or dedicated hosting. The issue is we need to append .p12 certificate on Azure, which is impossible in classic way. I've tried to put it in wwwroot/App_Data and load, but it doesn't work since, error from server we get is: 502 - Web server received an

Spring Boot - require api key AND x509, but not for all endpoints

。_饼干妹妹 提交于 2020-01-22 15:28:05
问题 Java 11, Spring Boot 2.1.3, Spring 5.1.5 I have a Spring Boot project in which certain endpoints are guarded by an API key. This works just fine at the moment with this code: @Component("securityConfig") @ConfigurationProperties("project.security") @EnableWebSecurity @Order(1) public class SecurityJavaConfig extends WebSecurityConfigurerAdapter { private static final Logger LOG = LoggerFactory.getLogger(SecurityJavaConfig.class); private static final String API_KEY_HEADER = "x-api-key";

In WCF, server hasn't accessed client's public key and client hasn't accessed server's public key - still the web-method operation is successful. Why?

元气小坏坏 提交于 2020-01-22 03:10:13
问题 I have a WCF service on a dev server secured with X.509 server certificate ( .pfx ) [not self-signed, organization provided] using message security. On my local machine, a client app consumed it with a client certificate ( .pfx ) [not self signed] file using message security. The intended operation (web service method) worked successfully with required result. Client service call : try { ServiceClient.Service1Client obj = newServiceClient.Service1Client(); Response.Write(obj.Add(1, 1)); }

Azure Hosted Service Bus : “The X.509 certificate CN=servicebus.windows.net is not in the trusted people store.”

家住魔仙堡 提交于 2020-01-19 06:16:25
问题 Using Azure SDK 2.3 on my vs2013 development VM I can consume Service Bus queues hosted in Azure painlessly. However, on Windows Server 2008 R2 Standard SP1, it looks like Windows can not trust the involved certificates and an exception is thrown. The line that throws : // Send the message await queueclient.SendAsync(message); Exception message : The X.509 certificate CN=servicebus.windows.net is not in the trusted people store. The X.509 certificate CN=servicebus.windows.net chain building