hi, im using dogtag 9.0. im trying to export the CA keys with the use of PKCS12Export command. in the Deploy and Install guide there is command to use: PKCS12Export -debug -d /var/lib/{instance_name}/alias -w p12pwd.txt -p internal.txt -o master.p12 where according to help -p <file containing password for keydb> -w <file containing pkcs12 password> -o <output file for pkcs12> but i always end up with: PKCS12Export debug: PKCS12Export Exception: org.mozilla.jss.util.IncorrectPasswordException what is 'file containing password for keydb' and 'file containing pkcs12 password'? i tried all combinations of passwords i used during the installation. more over during the installation i was not asked for any password to protect the keydb. so my next question is: should the passwords be in special format, like in base64, or more generally what passwords shall be used for this at all? thanks jd </pre>****************************************************************************************<br>This email and any files transmitted with are confidential and intended solely for the<br>use of the individual or entity to whom they are addressed. If you have received this<br>email in error then please delete it and notify the sender. Do not make a copy or forward<br>it to anyone. This footnote also confirms that this email message has been swept for the<br>presence of computer viruses.<br><br>Adaptive Mobile Security Ltd, Ferry House, 48 Lower Mount Street, Dublin 2, Ireland<br>Directors: B. Collins, G. Maclachlan (UK), N. Grierson (UK), J. Ennis (UK), D. Summers (UK).<br>Registered in Ireland, Company No. 370343, VAT Reg.No.IE6390343O<br>****************************************************************************************</pre>
On Tue, 2014-02-18 at 10:51 +0100, Jindrich Dolezal wrote:
hi, im using dogtag 9.0. im trying to export the CA keys with the use of PKCS12Export command. in the Deploy and Install guide there is command to use: PKCS12Export -debug -d /var/lib/{instance_name}/alias -w p12pwd.txt -p internal.txt -o master.p12 where according to help -p <file containing password for keydb> -w <file containing pkcs12 password> -o <output file for pkcs12>
but i always end up with: PKCS12Export debug: PKCS12Export Exception: org.mozilla.jss.util.IncorrectPasswordException
what is 'file containing password for keydb' and 'file containing pkcs12 password'? i tried all combinations of passwords i used during the installation. more over during the installation i was not asked for any password to protect the keydb.
so my next question is: should the passwords be in special format, like in base64, or more generally what passwords shall be used for this at all?
The file containing the pkcs12 password is simply a text file with the password of your choosing in cleartext. This will be the password needed to decrypt the keys in the pkcs12 file that is being generated. The file containing the password for the keydb is simply a text file containing only the password for the certdb under /var/lib/<instance_name>/alias in cleartext. That password is a randomly generated numeric string that was created during installation. It can be found by looking at /var/lib/<instance-name>/conf/password.conf. The password you want is the one prefaced by internal=XXXXX. Ade
thanks
jd
</pre>****************************************************************************************<br>This email and any files transmitted with are confidential and intended solely for the<br>use of the individual or entity to whom they are addressed. If you have received this<br>email in error then please delete it and notify the sender. Do not make a copy or forward<br>it to anyone. This footnote also confirms that this email message has been swept for the<br>presence of computer viruses.<br><br>Adaptive Mobile Security Ltd, Ferry House, 48 Lower Mount Street, Dublin 2, Ireland<br>Directors: B. Collins, G. Maclachlan (UK), N. Grierson (UK), J. Ennis (UK), D. Summers (UK).<br>Registered in Ireland, Company No. 370343, VAT Reg.No.IE6390343O<br>****************************************************************************************</pre>
_______________________________________________ Pki-users mailing list Pki-users@redhat.com https://www.redhat.com/mailman/listinfo/pki-users
We are trying to add some custom logic to pkispawn .For that we plan to write a pki scriptlet and assign the sequence number based on the order in which we want to execute it. Is such a customization supported in 10.0. If so , are the exact steps for adding the customization documented somewhere? Thanks, Anamitra
Anamitra, This type of customization is exactly what the scriptlet mechanism was designed for. The steps aren't documented yet, but they are pretty straightforward. In /etc/pki/default.cfg, there is a list of scriptlets (spawn_scriptlets) and (destroy_scriptlets) which lists the scriptlets that are invoked when pkispawn and pkidestroy are invoked. They are invoked in the order in which they are listed. You can override the definition of these variables in the DEFAULT section of your pkispawn custom config file. That *should* work, but if it doesn't, you can customize within the default.cfg file. Keep in mind though that this list sometimes (very infrequently) changes when updates are made and you will have to make sure that updates are incorporated in your scriptlet lists. Your scriptlet should be deployed to /usr/lib/python2.7/site-packages/pki/server/deployment/scriptlets/ and of course have a different name from any other scriptlets there. Try to make sure the name of your scriptlet is unique enough so as not to conflict with scriptlets that could be added in future updates. They should define a PkiScriptlet class: class PkiScriptlet(pkiscriptlet.AbstractBasePkiScriptlet): def spawn(self, deployer): pass def destroy(self, deployer): pass You've probably already done this - but see the current scriptlets in that directory as examples. Let us know how it goes, and if you run into any problems! Ade On Mon, 2014-03-03 at 21:27 +0000, Anamitra Dutta Majumdar (anmajumd) wrote:
We are trying to add some custom logic to pkispawn .For that we plan to write a pki scriptlet and assign the sequence number based on the order in which we want to execute it. Is such a customization supported in 10.0. If so , are the exact steps for adding the customization documented somewhere?
Thanks, Anamitra
_______________________________________________ Pki-users mailing list Pki-users@redhat.com https://www.redhat.com/mailman/listinfo/pki-users
participants (3)
-
Ade Lee -
Anamitra Dutta Majumdar (anmajumd) -
Jindrich Dolezal