First, download three packages at Github FasterXML. The three core modules are Streaming ("jackson-core") defines low-level streaming API, and includes JSON-specific implementationsAnnotations ("jackson-annotations") contains standard Jackson annotationsDatabind ("jackson-databind") implements data-binding (and object
more parameter: Writenullstringasempty, the case is as follows:Mainnew Autopartssearchrequest (); Request.setkeywords ("123"); Request.setsortingfield ("234242"); String str = jsonobject.tojsonstring (Request, Serializerfeature.writemapnullvalue, Serializerfeature.writenullstringasempty); System.out.println (str);} The output is as follows: Two, Jackson 1, Jackson by default is the serialization of NULL c
No Converter found for return value of Type:class Java.util.HashMapWhen using @ResponseBody to return JSON in SPRINGMVC, you need to manually add the Jackson dependency! Maven Add:Dependency>Groupid>com.fasterxml.jackson.coreGroupid>Artifactid>jackson-coreartifactid> version>2.4.3version>dependency>dependency> groupId> Com.fasterxml.jackson.coregroupid> artifactid>jacks
; @JsonInclude (include.non_null) PrivateString Phone; @JsonFormat (Pattern = "Yyyy-mm-dd hh:mm:ss", locale= "zh", timezone= "gmt+8")PrivateDate createtime;//provides the set and get methods, the ToString method}Mapping method in Controller class@GetMapping ("/testjackson") Public Object Testjson () { returnnewnullnew Date ()); }the effect Demo Interface test tool is PostmanWe found that:1: DateTime format becomes the specified formatThe 2:age property appears in the interface:
Computer Associates International, Inc (CA) recently announced that it won the best application/Management System Award at the Linux World China 2004 Conference. This shows that CA has once again affirmed its efforts to promote the development of Linux and open source communities.
With the development and maturity of Linux, more and more enterprises begin to apply open-source software.
92.168.10.187 CA Server192.168.10.190 Web Server(1) Build CACd/etc/pki/caCreate serial and Index.txt two files in this directoryecho > Serial (00 is the initial version number of the issuing certificate)Touch Index.txt(Umask 006;openssl genrsa-out private/cakey.pem 4096) generate private keyOpenSSL req-new-x509-key private/cakey.pem-out cacert.pem-days 3650 Generate self-signed CA certificate(2) Web server
Certificate requirements:
1. The format of the digital certificate follows the X.509 standard
2. Version V3
3. Signature Algorithm SHA256ECDSA
CA used in FABRIC-JAVA-SDK:
./e2e-2orgs/channel/crypto-config/peerorganizations/org1.example.com/users/admin@org1.example.com/msp/signcerts
./e2e-2orgs/channel/crypto-config/peerorganizations/org1.example.com/users/admin@org1.example.com/msp/keystore
Docker-compose.yaml the
Log on to the Windows Server 2003 Certificate Server as a domain administrator.
Start the-〉 management tool-〉 Certification Authority, open the certification authority
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/3D/wKioL1c8D6jT5FZYAAEijdorG-8329.png "title=" 001. PNG "alt=" Wkiol1c8d6jt5fzyaaeijdorg-8329.png "/>3. Right-click the CA name, all Tasks, and then click Backup CA. 650)
Building private CAs and SSH configuration servicesBefore you learn how to build a private CA, familiarize yourself with the basic concepts: CAS represents a certification authority, PKI represents a public key infrastructure, a registry of RA certificates, and a revocation list for CRL certificates. There are some encryption methods involved in architecting the CA, and here are some types of encryption to
Openssl is an open-source implementation of SSL (applications can be downloaded for free). It is a secure and confidential program that is mainly used to improve the security of remote login access. It is also one of the tools currently used in encryption algorithms and has powerful functions.Openssl provides a security protocol for network communication security and data integrity, including key algorithms, common key and certificate encapsulation management functions (
One. OpenSSL building a private CABuilding a CA1. Generate Private key2. Self-signed certificateIssuing certificates to nodes1. Node Application certificateNode Generation private keyGenerate a Certificate signing requestSend the request file to the CA2. CA Sign CertificateCA validates requestor's informationSign a certificateSend the signed certificate back to the requester.Certificate of Positive Examination:1. Digital signature of the decryption ce
can download the CA Public Key over the Internet to verify the server identity.2. The server generates a pair of keys through the encryption algorithm, and sends the public key to the CA for digital certificate.3. Ca encrypts the server public key with its own private key and adds its own digital signature to send the generated digital certificate to the server4
Tags: Data Encryption basic CA digital signature
Data security-> Encryption
1. Basic concepts:
Confidentiality: prevent others from getting data
Integrity: data is not damaged
Authentication: ensure the data source
PKI (Public Key Infrastructure): Public Key Infrastructure.
Generate password through negotiation: interne Key Exchange (IKE)
Diffie-Hellman protocol (this is a common security Ike)
Principle;
Negotiate between A and B:
Configuring a private CACA configuration Information/ETC/PKI/TLS/OPENSSL.CNF1. Create the required filesTouch/etc/pki/ca/index.txt Store the certificate database file, you need to create it manuallyEcho >/etc/pki/ca/serial Specify a 16-bit certificate label2.CENTOS7, build a CA into a private key.(Umask 066;openssl genrsa-out private/cakey.pem-des 2048)3 OpenSSL
Because of the needs of the experiment, you need to manually create the CA certificate and the client and server certificates, which are summarized as follows: In the last two days, you have read some information about certificate creation, I found that many introductions on the Internet are not complete and are not fully operable. @ Echooff @ remsetOPENSSL_HOMEd: toolsOpenSSL-Win32setPATH % OPENSSL_HOME %
Because of the needs of the experiment, you n
Configuring a private CACA configuration Information/ETC/PKI/TLS/OPENSSL.CNF1. Create the required filesTouch/etc/pki/ca/index.txt Store the certificate database file, you need to create it manuallyEcho >/etc/pki/ca/serial Specify a 16-bit certificate label2.CENTOS7, build a CA into a private key.(Umask 066;openssl genrsa-out private/cakey.pem-des 2048)3 OpenSSL
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.