1

我已经将 ords 配置为 ords 作为独立服务器的 oracle apex 18.2,对于 ords 配置,我使用了以下命令

java -jar ords.war install advanced

我在配置 ords 时从下面的问题中选择了 1

Enter 1 if using HTTP or 2 if using HTTPS [1]:

并使用以下命令启动服务器

java -jar ords.war 独立

服务器在本地工作正常,但根据当前计划,我想让服务器通过 Internet 直播,因为我想使用 SSL HTTPS 配置进行安全保护,我完全不知道如何实现这一点的步骤。我刚刚Require HTTPS从 Instance Setting 中的 Work-space 中进行了选择,但它没有工作,因为实例不可访问,所以我使用了下面的命令来恢复设置

BEGIN
    APEX_INSTANCE_ADMIN.SET_PARAMETER('REQUIRE_HTTPS', 'N');
    commit;
end;
/

想要一些关于 SSL/HTTPS 配置的有用建议

4

1 回答 1

3

编辑文件......config/ords/standalone/standalone.properties

添加设置jetty.secure.port=443(或任何需要的端口)

这会使用自签名证书启动 HTTPS 服务。

接下来获取证书并将其设置在配置中。有多种选择

  1. 让我们加密,这是我的博客文章http://krisrice.io/2018-05-09-ORDS-and-lets_encrypt/中的详细信息

  2. SSL 授权。这可能包括将 ssl 证书格式转换为 ORDS 所需的 .der。

在这种情况下,您必须运行类似于以下的命令来对其进行转换并删除加密:

openssl pkcs8 -topk8 -inform PEM -outform DER -in yourdomain.key -out yourdomain.der -nocrypt

然后再次编辑conf/ords/standalone/standalone.properties添加

ssl.cert=<path to yourdomain.crt> ssl.cert.key=<path to yourdomain.der> ssl.host=yourdomain

这是在文档中:https ://docs.oracle.com/cd/E56351_01/doc.30/e87809/installing-REST-data-services.htm#AELIG7026

或者在 oracle-base 上:https ://oracle-base.com/articles/misc/oracle-rest-data-services-ords-standalone-mode

于 2018-11-23T20:14:03.827 回答