Home php教程 php手册 二、记一次失败的 CAS 搭建 之 证书配置

二、记一次失败的 CAS 搭建 之 证书配置

Jun 13, 2016 am 09:32 AM
cas

=========================================================================================================

Setp2:SSL证书生成::参考:http://www.open-open.com/lib/view/open1392018954614.html

=========================================================================================================

1、生成keypair

keytool -genkeypair -alias cas -keyalg RSA -storepass changeit
Copy after login

默认情况下,生成的 keystore 就是用户目录下的 .keystore 文件。对于 Win8 而言,默认的用户目录为 C:\Users\用户名。

生成keypair的时候,信息随便输入即可,最后选择“y”,然后直接回车,不要输入密码

2、从 keystore 中导出证书

keytool -exportcert -alias cas -file cas.crt -storepass changeit
Copy after login

3、导入证书

keytool -importcert -alias cas -file cas.crt -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -storepass changeit -noprompt
Copy after login

4、双击执行运行证书!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Implement PHP security verification through CAS (Central Authentication Service) Implement PHP security verification through CAS (Central Authentication Service) Jul 24, 2023 pm 12:49 PM

PHP security verification through CAS (CentralAuthenticationService) With the rapid development of the Internet, user rights management and identity verification are becoming more and more important. When developing web applications, it is crucial to protect user data and prevent unauthorized access. In order to achieve this goal, we can use CAS (CentralAuthenticationService) for PHP security verification. CAS

What is the concept of java CAS What is the concept of java CAS May 03, 2023 pm 09:34 PM

1. Explain that when multiple threads perform CAS operations on a resource at the same time, only one thread succeeds, but it will not block other threads, and other threads will only receive a signal that the operation failed. It can be seen that CAS is actually an optimistic lock. 2. Following the AtomInteger code, we can find that sum.misc.Unsafe is finally called. Look at the name Unsafe, it's an unsafe class that exploits just the right holes in Java's class and visibility rules. For the sake of speed, Unsafe makes some compromises on Java's security standards. publicfinalnativebooleancompareAndSwapInt(Objec

How to apply CAS in java How to apply CAS in java Apr 18, 2023 pm 06:37 PM

CAS explanation: CAS (compareandswap), compare and exchange. A mechanism that can solve the performance loss caused by using locks in multi-thread parallel situations. The CAS operation contains three operands—memory location (V), expected original value (A) and new value (B). If the value of a memory location matches the expected original value, the processor automatically updates the location to the new value. Otherwise, the processor does nothing. A thread gets the num value from the main memory and operates on num. When writing the value, the thread will compare the first num value obtained with the num value in the main memory. If they are equal, the changed value will be num is written into the main memory. If they are not equal, the comparison will be looped until successful. Made by CAS

Java lock concurrency, lock-free concurrency and CAS example analysis Java lock concurrency, lock-free concurrency and CAS example analysis May 23, 2023 pm 01:34 PM

Locked concurrency For most programmers (of course I am basically one of them), concurrent programming is almost equivalent to adding a lock (Mutex) to the relevant data structure. For example, if we need a stack that supports concurrency, the simplest way is to add a lock std::sync::Mutex to a single-threaded stack. (Arc is added to allow multiple threads to have ownership of the stack) usestd::sync::{Mutex,Arc};#[derive(Clone)]structConcurrentStack{inner:Arc,}implConcurrentStack{pubfnnew()-> Self{

How to use CAS and java optimistic locking How to use CAS and java optimistic locking May 01, 2023 pm 08:07 PM

What is CASCAS is CompareAndSwap, that is, compare and swap. Why does CAS not use locks but still ensure safe data manipulation under concurrent conditions? The name actually shows the principle of CAS very intuitively. The specific process of modifying data is as follows: When using CAS to operate data, the original value of the data and the value to be modified are Pass it to the method to compare whether the current target variable value is the same as the original value passed in. If they are the same, it means that the target variable has not been modified by other threads. Just modify the target variable value directly. If the target variable value is different from the original value, then prove the target variable. It has been modified by other threads. This CAS modification failed. From the above process, we can see that CAS actually guarantees safe modification of data, but there are cases where the modification fails.

Real interview question: Please talk about the CAS mechanism in concurrency Real interview question: Please talk about the CAS mechanism in concurrency Jul 26, 2023 pm 03:05 PM

In the program, I created 100 threads, and each thread accumulated 10,000 operations on the shared variable inc. If it is executed synchronously, the final value of inc should be 1,000,000, but we know that in multi-threading, the program is concurrent executed, that is to say, different threads may read the same value from the main memory at the same time.

How to build CAS Client based on springboot How to build CAS Client based on springboot May 14, 2023 am 10:46 AM

1. Create a new springboot project and introduce the dependency org.jasig.cas.clientcas-client-support-springboot3.6.22. Configure the @EnableCasClient annotation packagecom.codetiler.demo;importorg.jasig.cas.client.boot.configuration.EnableCasClient;importorg. springframework.boot.SpringApplication;importorg.spring

The interviewer asks you: Do you know what an ABA problem is? The interviewer asks you: Do you know what an ABA problem is? Jul 26, 2023 pm 03:09 PM

This issue is about the analysis of a classic ABA problem in the CAS field. I don’t know if you have encountered it in actual work, but this is the focus of the concurrency knowledge test in the interview. If you haven't come across this kind of problem, my suggestion is to run the above code yourself.

See all articles