Article ID: 121295, created on Apr 24, 2014, last review on Jul 28, 2015

  • Applies to:
  • Odin Business Automation Standard 4.5

Symptoms

Application error appears when during import a new private key in OBAS:

Top > Configuration Director > Miscellaneous Settings > SSL Setup > Private Key > Import Key

The following is shown in the problem report:

[Error::throw] URI handler (HSPC::GM::Setup->teaser_ssl) error: Can't use string ("code") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/GM/SSL.pm line 105.

Cause

If you are using OBAS 4.5.1, please install the hotfix attached and restart the hspcd service to apply the changes:

~# rpm -Ufv hspc-configuration-manager-4.5.1-33.swsoft.i386.rpm
~# service hspcd restart

Note: the hotfix expands the error report.

Try then to import the private key again. The following error will appear in the log (/var/log/hspc/hspc.log):

[2014/04/23 09:18:43] [DEBUG] [5747] [HSPC::MT::GM::SSL::log] execution failed: failed to move /tmp/filetyWPav to /etc/httpd/conf/ssl-2012/%domain.tld%.key.copy: Permission denied
[2014/04/23 09:18:43] [WARN] [5747] [HSPC::SSL::Core::ssl_last_error] Failed to import SSL private key

The permissions on custom directory which contains keys /etc/httpd/conf/ssl-2012 should be the same as on the default directory /etc/httpd/conf/ssl.key.

Note: the directory name may be different in your case.

Resolution

To set the correct permissions please execute the following commands:

~# chown -R :apache /etc/httpd/conf/ssl-2012  
~# chmod -R g+w /etc/httpd/conf/ssl-2012

Search Words

Can't use string ("code") as a HASH ref while "strict refs" in use at /usr/lib/perl5/site_perl/5.8.8/HSPC/MT/GM/SSL.pm line 105.

cannot import a private key

private key

Application error

Failed to import SSL private key

400e18f6ede9f8be5575a475d2d6b0a6 caea8340e2d186a540518d08602aa065 624ca542e40215e6f1d39170d8e7ec75 70a5401e8b9354cd1d64d0346f2c4a3e

Email subscription for changes to this article
Save as PDF