certificate

How to enable SSL & Certificate in case WCF TCP binding

拟墨画扇 提交于 2019-12-13 04:56:56
问题 any one can guide me how to enable SSL & Certificate in case WCF TCP binding. any idea. var baseAddress = "localhost"; var factory = new DuplexChannelFactory<IMyWCFService>(new InstanceContext(SiteServer.Instance)); factory.Endpoint.Address = new EndpointAddress("net.tcp://{0}:8000/".Fmt(baseAddress)); var binding = new NetTcpBinding(SecurityMode.Message); binding.Security.Message.ClientCredentialType = MessageCredentialType.UserName; factory.Endpoint.Binding = binding; var u = factory

Validate Certificate chain with java bouncing castle

五迷三道 提交于 2019-12-13 04:53:59
问题 I would like to validate a certificate chain which will be imported into my app. I do not know how. My coleagues told me, that I have to use Bouncing castle for validation. I saw several examples and still do not have any progress. I have a List<X509Certificate> which contains all certificates which are imported from the UI, and also the PrivateKey . Could you please show me how to validate the certificate chain with Bouncing castle. 回答1: You can use the java.security.cert.CertificateFactory

How to sign X509 certificate requests by using java API?

妖精的绣舞 提交于 2019-12-13 04:32:22
问题 My java program should sign received X509 certificate requests by using own key. Certificate requests are in PEM format. The key/certificate for signing is in the local java key store. I have seek suitable classes from java.security package. But without success. What classes of Java API should be used for signing X509 certificates? I can convert PEM to DER, but decoding of DER causes problems. I have tried the following: BufferedInputStream bis = new BufferedInputStream(new

How can SQL Server client get information on TLS certificate being used?

霸气de小男生 提交于 2019-12-13 04:26:20
问题 If a client connects to SQL Server, and a certificate is used to power TLS encryption, how can i get information about that certificate? Ideally i want all the details, but i'd be happy with Issuer Issued to SHA1 fingerprint Obviously i can't just look at the configuration on the server; as i'm trying to verify no MitM. Also, i want to verify the correct certificate is being used (especially when no certificate is selected for use in the SQL Server Configuration Manager). Either way: i want

Axis2/Rampart Client Self-Signed Certificates

穿精又带淫゛_ 提交于 2019-12-13 03:38:23
问题 I'm trying to access a web service using a secure client. I generated two files: nb19200.pkcs12 server.jks I pasted the server keystore in tomcat and uploaded the pkcs12 to my browser, everything works well. Now, in my client application, I tried the following: First, export the server certificate, I used the following command: keytool -exportcert -alias servercert -file servercert.cer -keystore server.jks -storepass * * And then import it onto a keystore with nothing in there: keytool

Java - Sending certificate through socket

蓝咒 提交于 2019-12-13 03:24:29
问题 i need to send a v3certificate from the server to the client using socket. To do this: server side, i generate a certificate which i encode with base64.encode , then i send it to the client. Client side, i receive the string which contain the certificate, Server code: X509Certificate certificate = ...; sendAnswer(new String(certificate.getEncoded())); public static void sendAnswer(String ans) { try { s.shutdownInput(); PrintWriter output = new PrintWriter(s.getOutputStream(), true); output

Server accept trusted clients using openssl/certificate/private key

偶尔善良 提交于 2019-12-13 02:48:16
问题 I'm writing a client/server program to control a machine(server) from a client program and want to authenticate the client machine to know it's trusted. I could have many clients so I thought about using openSSL to encrypt a socket and generate a unique certificate/key pair for authentication. This pair would be copied during setup time with scp to each server/client. The server program, when the SSL connection is established, will ask for the client's certificate and verifies it against the

Transitioning Android dev from Linux to Windows: toolchain signes APK differently?

旧巷老猫 提交于 2019-12-13 02:37:58
问题 I have been developing my Android App on Linux and Eclipse for a year now. Decided to switch to windows for a number of reasons. Jumped through all the hoops, and now have my App building and exporting fine in Windows. ADT accepts and uses my developer certificate - store password and key password work fine. The resulting App installs fine on real devices, and appears to be signed fine, but Android Market will not accept upload of the App update with the following error: "The apk must be

how to extract CN from X509Certificate in Java - without using Bouncy Castle?

做~自己de王妃 提交于 2019-12-13 01:47:00
问题 I want to preferably use only what is bundled with java security package. From this answer, I tried: static void parseCert(String filename) throws FileNotFoundException, CertificateException, IOException, InvalidNameException { FileInputStream fis = new FileInputStream(filename); BufferedInputStream bis = new BufferedInputStream(fis); CertificateFactory cf = CertificateFactory.getInstance("X.509"); while (bis.available() > 0) { X509Certificate cert = (X509Certificate) cf.generateCertificate

PowerShell: How to install a PFX certificate on a remote computer in 'CurrentUser' store location?

≡放荡痞女 提交于 2019-12-13 01:46:07
问题 I have tried Import-PfxCertificate with Invoke-Command but I think it requires the certificate file to be copied first on remote server. And i also think it requires the credentials to be delegated. As per the below link the .Net classes does not support 'CurrentUser' - http://blogs.technet.com/b/heyscriptingguy/archive/2011/02/16/use-powershell-and-net-to-find-expired-certificates.aspx "Of these two certificate store locations, only LocalMachine can be accessed remotely via the .NET class.