Pages

This tutorial covers the basics of the science of cryptography. It explains how programmers and network professionals can use cryptography to maintain the privacy of computer data. Starting with the origins of cryptography, it moves on to explain cryptosystems, various traditional and modern ciphers, public key encryption, data integration, message authentication, and digital signatures.
Showing posts with label public key infrastructure. Show all posts
Showing posts with label public key infrastructure. Show all posts

Tuesday, 10 March 2020

Command Generate Certificate Signing Request (CSR) with Openssl

openssl req -nodes -newkey rsa:2048 -keyout example.key -out example.csr -subj "/emailAddress=testing@test.id/C=ID/O=Personal/CN=testing123"

Return --> example.key
-----BEGIN PRIVATE KEY-----MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC+GY97PIu37Nmo1xCvzQp7z53S2OtmKV2c1VdthSze03Ce9Fal9Wg4Y17uo3znnYdRESKBzBPEBjVuFiv7tEf+VC2osfgD83rvIIFOjzQMozdyX6JWitmce8x+P+be1vKE3+HlG5z6r1zGuORC3YNDaSp0rzuMZRo+wi053zLVngI1hXWV2u3XDCz2ghEd6jl/8FN7Pe64JaYVz8uUlh6zwK//wJ5dn/1r6kFX+AJhYLrTJUxBl9Toq/euQUbNp8h7vnyQWbgFF/sC1JQ6q+LjrHqN61ullzMK4kCGO8TfskuRYBEJR5v4amT5ql7UDzjPeiqNXbTYalWTa1Ld//dLAgMBAAECggEATujFSl6DkMFcSF2dq5vtMh+oX5FzhWC+Xw+fzvJtAcG7CgBax2Dq9h0plt1+R5Z4SQpXzJEt0zzQiPXjJARdrhC7Mz9MuDclXIWdp0KCVIybw3o3JL1WP0KUTAOyjeWjncxhNH0V2GlalZLCDY9toVnSKcVjbo+5KTvpEhC4RTsuMma2gG2+3NvEThwNjgqCb+FARGhTGM8Ek13z5v3a5Z4Bo1QUqE2K+7gHzMbgcBvte05Ysp6NTaDA3nE7NsFfbcN6kBM4UV4cy4YuBV3O66ICuERkmnh703xg7WyAfCpzNU7Topl0AVvmzsT4spIZp6Js3JW8e8Gf3Zc/h3SGoQKBgQDp42WChFurMfyIxed1IyNwuS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GY97PIu37Nmo1xCvzQp7z53S2OtmKV2c1VdthSze03Ce9Fal9Wg4Y17uo3znnYdRESKBzBPEBjVuFiv7tEf+VC2osfgD83rvIIFOjzQMozdyX6JWitmce8x+P+be1vKE3+HlG5z6r1zGuORC3YNDaSp0rzuMZRo+wi053zLVngI1hXWV2u3XDCz2ghEd6jl/8FN7Pe64JaYVz8uUlh6zwK//wJ5dn/1r6kFX+AJhYLrTJUxBl9Toq/euQUbNp8h7vnyQWbgFF/sC1JQ6q+LjrHqN61ullzMK4kCGO8TfskuRYBEJR5v4amT5ql7UDzjPeiqNXbTYalWTa1Ld//dLAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEAR39Iy8jB8ZVrUKxddD3BndF3tjL+X0WnW7hnwQnCpOYoEy/IfkppJhK09AhG62yryGcc+WJFwWz2mFytG28HvB2dVentO6MwUUHJ0K2AFFKphU0LHCs1hXzsuPqKGIBbxkxmaNW/Omozy8asvkiEQl9qZPjWpeROBRXQtDYfhR0VXSSB51rmK7Vc4J0t3VlMyPgNav+JewoygspkSYOCxJ4IcsHSQ0ATuLu52+6DfLhJ42ukocyRnSiUp8WYDRwK+yCPkqojtjhS19xb0v85Lz7OgHy62xXRmWiBR6SZmNSYaafzzwFkS5QfQ2eZnIGubas+u6uRVuSKkJPWH/ga1g==-----END CERTIFICATE REQUEST-----



Tuesday, 29 October 2019

[e-Journal Cryptography] Improvement in the Performance and Security of Advanced Encryption Standard Using AES

Improvement in the Performance and Security of Advanced Encryption Standard Using AES Algorithm and Comparison with Blowfish
Amit Verma 1*
, Simarpreet Kaur 1, Bharti Chhabra 3
1M. Tech. Research Scholar, Computer Science & Engineering, Chandigarh Engineering College
3Assistant Professor, Computer Science& Engineering, Chandigarh Engineering College, Landran, Punjab, India
1* Professor and Head of Department, Computer Science& Engineering, Chandigarh Engineering College, Landran, Punjab,
IndiaDramitverma.cu@gmail.com


Abstract- Background\Objective: - The origin of cryptography is found in Roman and Egyptian culture. Cryptography is a thousand years old process to encrypt the messages. In its ancient form, people use cryptography to hide their messages that they want to keep secret from others by substituting the part of the message with symbols, numbers or pictures. With the increase in technology the need of cryptography is also increased which gives rise to new cryptographic algorithms such as DES, 3DES, AES and Blowfish

Source: https://pdfs.semanticscholar.org


Friday, 18 October 2019

[SOLVED] java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date

PROBLEM
when validating digital certificates using ocsp get error
java.security.cert.CertPathValidatorException: Response is unreliable: its validity interval is out-of-date
CAUSE

the time on the client and server is not appropriate ... 
SOLVED
fix the time on the client or server with the correct time
EXAMPLE

at 19 Oct 2019 00:49, the client checks OCSP to the OCSP server and the response is 👇


CSP response:
Response Status: SUCCESS
Responder ID: byKey: 86AFCABDF4F169C1AAC9D78E98F2B029E3196645
Produced: Saturday 19 October 00:30:53 WIB 2019
1 response:
SingleResponse:
CertId
Algorithm: SHA-1
issuerNameHash
0000: 9C 46 39 8F C4 67 DC C5 77 58 E9 F1 F4 11 BC F9. F9..g..wX ......
0010: 11 14 E2 0E
issuerKeyHash:
0000: 86 AF CA BD F4 F1 69 C1 AA C9 D7 8E 98 F2 B0 29 ...... i ........)
0010: E3 19 66 45
SerialNumber: [2dbc67be 3bac5c48]
CertStatus: OK
This update is Saturday October 19 00:30:53 WIB 2019



there is a time difference between client and server