Next, use Java code to achieve a remote server certificate, or take Sina home test, on the code: Packageorg.test;ImportJava.net.URL;Importjava.security.MessageDigest;Importjava.security.cert.Certificate;Importjava.security.cert.X509Certificate;Importjavax.net.ssl.HttpsURLConnection; Public classApplication { Public Static voidMain (string[] args)throwsException {URL url=NewURL ("https://www.sina.com.cn"); H
. it is not recommended to change this value if you are using sun's JVM. it is reported that IBM's 1.4.1 Implementation of the TLS protocol is not compatible with some popular browsers. in this case, use the valueSSL.
ciphers
The comma separated list of encryption ciphers that this socket is allowed to use. By default, any available cipher is allowed.
algorithm
TheX509Algorithm to use. This defaults to the Sun implementation (SunX509). For IBM JVMs you shoshould use the v
As with normal browser access, the service-side certificate is still verified to be trusted (issued by the Authority or signed by the Authority), and if the server-side certificate is not trusted, the default implementation will be problematic and, in general, Java frequently reports errors when accessing SSL links:
Javax.net.ssl.SSLHandshakeException:sun.securi
where you import the Java default certificate cacerts Rapa.certKeytool-import-alias Rapaserver-keystore cacerts-file Rapa.cert-keystore cacerts4. Deletion of certificate entriesKeytool command line arguments-delete can delete entries in the KeyStore, such as: Keytool-delete-alias rapaserver-keystore d2aapplet.keystore, this command Rapaserver in D2aapplet.keysto
Keytool is a Java Data Certificate management tool that Keytool the key (key) and certificate (certificates) in a file called KeyStore in KeyStore, containing two kinds of data: key entity Entity)-the key (secret key) or the private key and the paired public key (with asymmetric encryption) can be trusted by the certificate
One: The package that needs to be includedImport java.security.*;Import java.io.*;Import java.util.*;Import java.security.*;Import java.security.cert.*;Import sun.security.x509.*Import Java.security.cert.Certificate;Import Java.security.cert.CertificateFactory;
Second: Read the certificate from the fileWrite the certificate in. KeyStore to the file using Keytool, and then read the
the X509 certificate. Certificateversion CV = new Certificateversion (CERTIFICATEVERSION.V3);
X509certinfo.set (X509certinfo.version, CV); Set version number only V1, v2,v3 these legal values/** * above is the basic information of the certificate if you want to add user extension information It is more cumbersome to first determine that version must be V3 or not, and then follow the steps below * * * o
Java https server certificate authentication Solution
"Unable to find valid certification path to requested target", "PKIX path building failed" error for Java https connectionCause
This problem occurs because the Java root certificate library does not contain the root
IOS Push certificate maker (java/php)When you use Java or PHP to make an iOS push server, you need to synthesize it yourself from the aps_developer_identity certificate and Apple Development Push services certificate that you exported on the developer's website. Generate a P
Part of the original, reference: reference: http://tanyongbing.iteye.com/blog/1855132
In project development, you sometimes encounter with SSL security certificate import, how to import the certificate into the Java Cacerts Certificate Library.In fact it is very simple, the method is as follows:Each step: Use the Fire
Part of the original, reference: reference: http://tanyongbing.iteye.com/blog/1855132In project development, sometimes encounter with SSL security certificate import to deal with, how to import the certificate into Java cacerts Certificate library?In fact, it is very simple, the method is as follows:Every step: Use the
OrderThe previous article talked about Java generating digital certificates, using third-party component BC. This article also introduces the generation of digital certificates, but unlike the previous one, this article uses the KeyStore storage method, the exported certificate file format is PFX, this format of the certificate contains not only the public key, b
When connection is obtained, it will still verify that the server's certificate is trusted (issued by the Authority or signed by the Authority), as is the case with normal browser access, and if the server-side certificate is not trusted, the default implementation is problematic, in general, Java often reports an error when accessing SSL links:Javax.net.ssl.SSLH
Every college student is a cet-4,cet-6 before the test;Every student in the accounting profession is yearn the CPA certificate;Each of the students of the legal profession has been the Secretary of the examination and sleep;What about every student who learns Java? Those Java-related certificates, which one is your target?SCJPSun certificated
password is set to: abc123.OpenSSL pkcs12-nocerts-out pushchat_noenc.pem-in PUSHCHATKEY.P123. Create pkcs#12 format files with certificate and the key.OpenSSL pkcs12-export-in aps_developer_identity.pem-inkey pushchat_noenc.pem-certfile PushChat.certSigningRequest- Name "Aps_developer_identity"-out aps_developer_identity.p12This way we get the certificate file used in the. NET application: APS_DEVELOPER_ID
Transfer from Blog Park http://www.cnblogs.com/cloudapps/p/5022544.html
resolve Java Invoke Azure SDK certificate error javax.net.ssl.SSLHandshakeException
Azure, as Microsoft's public cloud platform, offers a wealth of SDK and APIs to enable developers to easily invoke various services, currently in addition to their own. NET, Java, Python, Nodejs, ruby,php an
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.