Under the Windows platform, if you want to parse a X509 certificate file, the most straightforward way is to use Microsoft's CryptoAPI. But under the non-Windows platform, you can only use the powerful open source cross-platform library OpenSSL.
Please pay attention to the previous series of articlesDecode X509 certificate content using CryptoAPIParsing X509 Certificate Primitives using CryptoAPIThrough the previous article, we can use CryptoAPI to decode the X509 certificate file and parse
In the previous article, "CSP: Using CryptoAPI to decode X509 certificate content," describes how to use CryptoAPI to decode the certificate file to get the pccert_context method of the certificate context handle. Let's go on to get the desired
In Internet-based WCF services, security is a very important part. There are many security modes in WCF. This time, we will consider using a limited server environment (such as a virtual host) to configure the message security mode for X509
Introduction (Creating a generated certificate can only be used for test use.) If you want to use a self-signed certificate, you can only issue certificates to the CA authority for two-way authentication to use.The use of HTTP (Hypertext Transfer)
This is a creation in
Article, where the information may have evolved or changed.
We write a go program to try to establish a connection and communicate with this HTTPS server.
Gohttps/4-https/client1.goPackage Main
Import ("FMT""Io/ioutil""Net/http"
A Cer certificate also needs a signature to prevent the CER certificate from being tampered.
There are two types of certificates:
1. Root Certificate
2. The sub-certificate issued by the root certificate.
The root certificate is special. It is self-
. How to operate digital certificate in net
. NET provides us with two main classes for manipulating digital certificates, divided into:System.Security.Cryptography.X509Certificates.X509Certificate2 class, each instance of this class can represent
Using OpenSSL utilities
An OpenSSL command line takes the following form:
openssl utility arguments
For example:
openssl x509 -in OrbixCA -text
Each Command is individually described in this Appendix. To get a list of the arguments
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.