...
- IdP起動時のエラー
アンカー amplt amplt
IdPを起動時に下記のエラーが idp-process.log に出力されます。
→上記のエラーは relying-party.xml にXML文法としての間違いがある場合に出力されます。書式設定済み 14:51:13.419 - INFO [edu.internet2.middleware.shibboleth.common.config.BaseService:158] - Loading new configuration for service shibboleth.RelyingPartyConfigurationManager 14:51:13.506 - ERROR [edu.internet2.middleware.shibboleth.common.config.BaseService:188] - Configuration was not loaded for shibboleth.RelyingPartyConfigurationManager service, error creating components. The root cause of this error was: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
→例えば relying-party.xml にパスフレーズ付きの証明書を設定するとき、パスフレーズに '&' や '<' を含む場合はこれらの文字列をそのまま設定することはできません。これらの文字を含む場合は文字参照で
や書式設定済み nopanel true &
のように記述してください。書式設定済み nopanel true <
- 誤ったパスフレーズ設定例
書式設定済み <security:Credential id="IdPCredential" xsi:type="security:X509Filesystem"> <security:PrivateKey Password="myKeyPa$$word&"> /opt/shibboleth-idp/credentials/server-enc.key </security:PrivateKey>
- 正しいパスフレーズ設定例
書式設定済み <security:Credential id="IdPCredential" xsi:type="security:X509Filesystem"> <security:PrivateKey Password="myKeyPa$$word&"> /opt/shibboleth-idp/credentials/server-enc.key </security:PrivateKey>
- 誤ったパスフレーズ設定例
...
- SP起動時のエラー
SPを起動時に下記のエラーが出力されます。
また /var/log/shibboleth/shibd.log には下記のエラーが出力されています。書式設定済み $ sudo /etc/init.d/shibd start Starting shibd: configuration is invalid, check console for specific problems [FAILED]
→上記のエラーは shibboleth2.xml にXML文法としての間違いがある場合に出力されます。書式設定済み 2013-02-12 14:36:06 ERROR XMLTooling.ParserPool : fatal error on line 105, column 145, message: expected entity name for reference 2013-02-12 14:36:06 ERROR Shibboleth.Config : error while loading resource (/etc/shibboleth/shibboleth2.xml): XML error(s) during parsing, check log for specifics 2013-02-12 14:36:06 FATAL Shibboleth.Config : caught exception while loading configuration: XML error(s) during parsing, check log for specifics
→例えばCredentialResolverにパスフレーズ付きの証明書を設定するとき、パスフレーズに '&' や '<' を含む場合はこれらの文字列をそのまま設定することはできません。これらの文字を含む場合は文字参照で
や書式設定済み nopanel true &
のように記述してください。書式設定済み nopanel true <
- 誤ったパスフレーズ設定例
書式設定済み <CredentialResolver type="File" key="cert/server-enc.key" certificate="cert/server-enc.crt" password="myKeyPa$$word&"/>
- 正しいパスフレーズ設定例
書式設定済み <CredentialResolver type="File" key="cert/server-enc.key" certificate="cert/server-enc.crt" password="myKeyPa$$word&"/>
- 誤ったパスフレーズ設定例