> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/sso-connect-on-prem/jp/appendix.md).

# SSL証明書の作成

KeeperオンプレミスSSOコネクト用のSSL証明書をWindowsで作成

{% hint style="info" %}
[ZeroSSL](https://zerossl.com/)で無料のSSL証明書をすばやく入手できます。各手順をより細かく進めたい場合は、以下の手順をご利用ください。
{% endhint %}

本ページでは、KeeperオンプレミスSSOコネクトで使用するSSL証明書の生成手順を取り扱います。既存環境では、SSL証明書の有効期限が切れる前にこの作業を行う必要があります。

Linuxをご使用の場合は、バイナリ版のOpenSSLをインストールする必要はありません。以下の手順はWindows環境を対象としています。

## **Windows**

1. **OpenSSLバージョン1.1.1をダウンロードしてインストール**

OpenSSL 3.0はJava 11との互換性に問題があるため、現時点ではバージョン1.1.1のご使用をお勧めします。便宜上、サードパーティ (slproweb.com) 製のバイナリインストーラーを利用できます。以下は、代表的なバイナリインストーラーのダウンロードリンクです。

<https://slproweb.com/download/Win32OpenSSL_Light-3_1_4.exe>

インストール時は、デフォルトのオプションのままで問題ありません。途中でMicrosoft Visual Studioの拡張機能のインストールを求められる場合があります。指示に従って拡張機能をインストールしてから、OpenSSLのセットアップを完了してください。

<figure><img src="https://2257682436-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnnyqlSSLL0TJdycg6le%2Fuploads%2FZuRJciqMHl21vbG4gv8z%2Fscreen-1.png?alt=media&amp;token=efeb2dbf-6454-48e2-b8be-b93cdae5ad14" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2257682436-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnnyqlSSLL0TJdycg6le%2Fuploads%2FEXJpD7Jp7Dni83kIYdXP%2FScreen-2.png?alt=media&amp;token=1cb756ab-cb0b-4f4a-ad56-e27cbd468acb" alt=""><figcaption></figcaption></figure>

2. **OpenSSLコマンドプロンプトを起動**

スタートメニューにOpenSSLフォルダが表示されます。 **\[OpenSSL Command Prompt]** をクリックします。

<figure><img src="https://2257682436-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnnyqlSSLL0TJdycg6le%2Fuploads%2FNvLIOmSmyhduPMANQCB7%2Fscreen-3.png?alt=media&amp;token=dc7e05f2-ac43-41f0-893d-cc6803332d1e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2257682436-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnnyqlSSLL0TJdycg6le%2Fuploads%2Fgt8BA87ZOFp7vMiWqieD%2Fscreen-4.png?alt=media&amp;token=ecaaae62-7858-4592-b6bd-b81d14c289f1" alt=""><figcaption></figcaption></figure>

3. **秘密鍵を作成**

**\[OpenSSL Command Prompt]** で、以下のコマンドを実行して秘密鍵を作成します。

```
C:\Users\craig> openssl genrsa -out keeper.mycompany.com.key
```

4. **CSRを生成**

SSOコネクトで使用するホスト名でCSRを作成します。この例では `keeper.mycompany.com` を使用します。一般名 (Common Name) は、ドメインと正確に一致させる必要があります。

以下は、入力例です。

{% code overflow="wrap" %}

```
C:\Users\craig> openssl req -new -key keeper.mycompany.com.key -out keeper.mycompany.com.csr

Country Name (2 letter code) [XX]:US
State or Province Name (full name) []:Illinois
Locality Name (eg, city) [Default City]:Chicago
Organization Name (eg, company) [Default Company Ltd]:Lurey, LLC
Organizational Unit Name (eg, section) []:Engineering
Common Name []:keeper.mycompany.com
Email Address []:webmaster@lurey.com
```

{% endcode %}

5. **SSL証明書を購入**

CSRをSSL証明書プロバイダに提出します。証明書をお持ちでない場合は、<https://ssls.com>の基本HTTPS証明書のご利用をお勧めします。

ベンダーの指示に従って証明書リクエストを完了し、発行を待ちます。発行まで5分から24時間かかることがあります。所要時間はベンダーにご確認ください。

SSL証明書プロバイダから、署名付き証明書 (`.crt` ファイル) と中間CA証明書 (`.ca-bundle`) を含むzipファイルが届きます。このファイルを秘密鍵と同じ場所に解凍します。

6. **pfxファイルを作成**

証明書の発行後、 `.pfx` 形式に変換する必要があります。 `.key` 、 `.crt` 、 `.ca-bundle` ファイルと同じフォルダで、 **\[OpenSSL Command Prompt]** から以下のコマンドを実行します。

{% code overflow="wrap" %}

```bash
openssl pkcs12 -export -out keeper.mycompany.com.pfx -inkey keeper.mycompany.com.key -in keeper.mycompany.com.crt -certfile keeper.mycompany.com.ca-bundle

Enter Export Password: **********
Verifying - Enter Export Password: **********
```

{% endcode %}

以下は、この例の各ファイルです。

* `keeper.mycompany.com.key`: 手順3で生成した秘密鍵
* `keeper.mycompany.com.crt`: 手順5で発行された署名付き証明書
* `keeper.mycompany.com.ca-bundle`: 中間証明書とパブリック認証局のルート証明書チェーンを含むCAバンドル
* `keeper.mycompany.com.pfx`: SSOコネクトで使用する、パスワードで暗号化したpkcs12出力ファイル

4つのファイルと生成した強力なパスワードは、必ずKeeperボルトに保存してください。PFXのパスワードに特殊文字は使用しないでください。

このパスワードは、PFXファイルをKeeper SSOコネクトにインポートするときに必要になります。

7. **証明書をインストール**

オンプレミスSSOコネクトに戻り、 **\[Configuration]** をクリックします。

<figure><img src="https://2257682436-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnnyqlSSLL0TJdycg6le%2Fuploads%2F766ZRGOJyuBKQBpPZTJL%2F1_300402-SSOConnectConfigTab.png?alt=media&amp;token=02ab861b-3883-4d26-af19-35675f01cee7" alt=""><figcaption></figcaption></figure>

8. 先ほど生成した `.pfx` ファイルをSSOコネクトにドラッグまたはアップロードします。

<figure><img src="https://2257682436-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpnnyqlSSLL0TJdycg6le%2Fuploads%2Fx3DbFrNjMZk0GPWaoChg%2F2_300402-SSOConnectDropUploadSSL.png?alt=media&amp;token=af2aa446-a77a-4cda-b88e-72015c7a251e" alt=""><figcaption></figcaption></figure>

9. SSOコネクトの右上隅にある **\[保存]** をクリックすると、証明書の設定が完了します。

設定完了後、エンドユーザーのログインフローを確認し、SSOログインが動作することをご確認ください。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.keeper.io/sso-connect-on-prem/jp/appendix.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
