<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<Connector port="8443" address="${jboss.bind.address}"
protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="${jboss.server.home.dir}/conf/server.keystore"
keystorePass="changeit"
/>
You need a GNU compatible tool to unzip Gradle, if you want the file permissions to be properly set. We mention this as some zip front ends for Mac OS X don’t restore the file permissions properly.
权限要正确被设置,注意下。
ENVIRONMENT VARIABLES
add GRADLE_HOME/bin to PATH.
TEST INSTALLATION
gradle -v
Build Scripts Basics
basic concepts: projects and tasks.
below is the build.gradle of
JakeWharton/hugo. Take is as a
start to learn gradle.
g : reload the gist list from server
e : edit current gist description
k : delete current gist
+ : add a file to the current gist
- : remove a file from the current gist
in-place edition. While viewing a gist file buffer, you can:
12
C-x C-s : save a new version of the gist
C-x C-w : rename some file
Functions:
1234567891011121314151617181920
gist-list - Lists your gists in a new buffer. Use arrow keys
to browse, RET to open one in the other buffer.
gist-region - Copies Gist URL into the kill ring.
With a prefix argument, makes a private gist.
gist-region-private - Explicitly create a private gist.
gist-buffer - Copies Gist URL into the kill ring.
With a prefix argument, makes a private gist.
gist-buffer-private - Explicitly create a private gist.
gist-region-or-buffer - Post either the current region, or if mark
is not set, the current buffer as a new paste at gist.github.com .
Copies the URL into the kill ring.
With a prefix argument, makes a private paste.
gist-region-or-buffer-private - Explicitly create a gist from the
region or buffer.
这里唯一需要注意的一点是:生成证书时,要求输入名称和姓氏(First Name
and Last Name)时,需要输入部署 cas server 的计算机名,比如:
pieux-macbook-pro.local 或者 tech-w-xishanshan。在后面的配置 cas
client 的 Authentication Filter 和 Validation Filter 时,配置的服务器
地址应该也是以计算机名开头,不要使用 localhost 或者 ip:
如果 cas server 和 cas client 都部署在相同的机器上(一般是开发过程中),
那如果你按照上面和上面提到的参考文章的步骤,就应该不会有错误了。
但是,有一个大坑。如果 cas server 和 cas client 不是部署在一台机器上,
你很有可能会遇到一个异常是:
1
sun.security.validator.ValidatorException: PKIX path building failed:
The problem here is that the CAS client does not trust the
certificate presented by the CAS server; most often this occurs
because of using a self-signed certificate on the CAS server.
该问题一般是 cas client 不信任 cas server 展示的证书,而且绝大多数情况
下(按我目前遇到的,就是所有情况下),是 cas server 向 client 展示的是
self-signed certificate。