Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Can't use string ("PIN") as a HASH ref while "strict refs" #102

Open
tkriener opened this issue Nov 25, 2016 · 0 comments
Open

Error: Can't use string ("PIN") as a HASH ref while "strict refs" #102

tkriener opened this issue Nov 25, 2016 · 0 comments

Comments

@tkriener
Copy link

During the enrollment of a openssl-Keystore I get the error "Can't use string ("PIN") as a HASH ref while "strict refs" " inside of importP12

This is the debug:

2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::_sendRequest(2019)] Install cert in initial enrollment, first build p12 to import into the final location.
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::createPKCS12(1028)] Start CertNanny::Keystore::OpenSSL::createPKCS12 create pkcs12 file
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::createPKCS12(1064)] Certformat: PEM
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::createPKCS12(1099)] passout set
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::createPKCS12(1121)] Adding CA certificate 'ActiveDirectory-CA' in /var/CertNanny/tmp/cbf1G58Z
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::createPKCS12(1121)] Adding CA certificate 'ActiveDirectory-CA' in /var/CertNanny/tmp/cbf1G58Z
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Util::runCommand(112)] Execute: "/usr/bin/openssl" pkcs12 -export -out "/var/CertNanny/state/openssl-import.p12" -password env:EXPORTPIN -in "/var/CertNanny/state/openssl-cert.pem" -inkey "/var/CertNanny/state/openssl-key.pem" -name "cert1" -certfile "/var/CertNanny/tmp/cbf1G58Z" -caname "ActiveDirectory-CA" -caname "ActiveDirectory-CA"
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::createPKCS12(1148)] End CertNanny::Keystore::OpenSSL::createPKCS12 create pkcs12 file
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::_sendRequest(2057)] Created importp12 file: openssl-import.p12
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::_sendRequest(2059)] Target keystore: OpenSSL
2016-11-25 10:57:45 : [debug] [21167] [CertNanny::Keystore::OpenSSL::importP12(1183)] Start CertNanny::Keystore::OpenSSL::importP12 import pkcs12 file
Could not execute OpenSSL keystore importP12 function. Aborted. Problem calling importP12 Can't use string ("PIN") as a HASH ref while "strict refs" in use at /opt/CertNanny/bin/../lib/perl/CertNanny/Keystore/OpenSSL.pm line 1188.
 at /opt/CertNanny/bin/../lib/perl/CertNanny.pm line 408
 at /opt/CertNanny/bin/../lib/perl/CertNanny.pm line 408

Perl is 5.14 on debian 7.11

Can this be a configuration issue?

Regards,
Thomas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant