Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default Problem with digital certificate

(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 340
Default Problem with digital certificate

For what its worth: I just created a certificate using the Office tools and
signed a vb project in Excel 2003. I then took it to another PC which has
2007 and opened it. Excel 2007 said that the certificate was invalid (it
works fine on the Excel 2003 PC) and gave no option to enable macros.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Stan Brown" wrote in message
t...
(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Problem with digital certificate

Stan

Have a go at changing the DC to a Trusted Certifiicate.

With Excel closed......................

StartRun "mmc" to open the Microsoft Management Console.

FileAdd/Remove Snap-in. Select Certificates snap-in.

Expand and open Personal Certificates folder.

Select your SelfCert DC and drag it to the Trusted Root
CertificatesCertificates folder.

Close MMC...........you can save changes to Comsole1.msc if you choose, but not
necessary unless you want the snap-in to stay loaded.

Now open Excel and your workbook.

Any difference?


Gord Dibben MS Excel MVP

On Sun, 1 Apr 2007 09:24:10 -0400, Stan Brown
wrote:

(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default Problem with digital certificate

Thanks, Gord.

Maybe this is the problem: the certificate shows up both in Personal
and in Trusted Root.

Should I delete one or both of them?

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/


Sun, 01 Apr 2007 09:25:49 -0700 from <Gord Dibben
<gorddibbATshawDOTca:
Stan

Have a go at changing the DC to a Trusted Certifiicate.

With Excel closed......................

StartRun "mmc" to open the Microsoft Management Console.

FileAdd/Remove Snap-in. Select Certificates snap-in.

Expand and open Personal Certificates folder.

Select your SelfCert DC and drag it to the Trusted Root
CertificatesCertificates folder.

Close MMC...........you can save changes to Comsole1.msc if you choose, but not
necessary unless you want the snap-in to stay loaded.

Now open Excel and your workbook.

Any difference?


Gord Dibben MS Excel MVP

On Sun, 1 Apr 2007 09:24:10 -0400, Stan Brown
wrote:

(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Problem with digital certificate

Stan

I have the same DC's in both folders and see no negative effects.

If you double-click on the DC in your Personal Folder does it still have the big
red cross on it signifying not trusted?

Once moved to the Trusted Root folder that red cross should disappear.

I am still concerned about the second part of your original posting, that is the
part about

"An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)


I don't understand that unless you are trying to create another selfcert DC with
the same name as your original.

Maybe an idea to open MMC and delete the selfcert DC from both folders and start
over building a new one.


Gord Dibben MS Excel MVP


On Sun, 1 Apr 2007 17:41:51 -0400, Stan Brown
wrote:

Thanks, Gord.

Maybe this is the problem: the certificate shows up both in Personal
and in Trusted Root.

Should I delete one or both of them?

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/


Sun, 01 Apr 2007 09:25:49 -0700 from <Gord Dibben
<gorddibbATshawDOTca:
Stan

Have a go at changing the DC to a Trusted Certifiicate.

With Excel closed......................

StartRun "mmc" to open the Microsoft Management Console.

FileAdd/Remove Snap-in. Select Certificates snap-in.

Expand and open Personal Certificates folder.

Select your SelfCert DC and drag it to the Trusted Root
CertificatesCertificates folder.

Close MMC...........you can save changes to Comsole1.msc if you choose, but not
necessary unless you want the snap-in to stay loaded.

Now open Excel and your workbook.

Any difference?


Gord Dibben MS Excel MVP

On Sun, 1 Apr 2007 09:24:10 -0400, Stan Brown
wrote:

(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 524
Default Problem with digital certificate

Hi, Gord.

No, neither the Personal one nor the Trusted Root one has a red
cross. Under "Certification path", "Certificate stats", both say the
certificate is OK.

(puzzled) No, the old name is Stan Brown - Tompkins County and the
new name was Stan Brown at Oak Road Systems.

Oh dear. I deleted both those certificates, then tried to create a
new one. "An error occurred during certificate creation. Selfcert was
unable to create your certificate." I am certain that there is no
name conflict -- there are no certificates in Personal and there's
nothing in Trusted Root that starts with Stan.

Help!

Sun, 01 Apr 2007 17:00:50 -0700 from <Gord Dibben
<gorddibbATshawDOTca:
Stan

I have the same DC's in both folders and see no negative effects.

If you double-click on the DC in your Personal Folder does it still have the big
red cross on it signifying not trusted?

Once moved to the Trusted Root folder that red cross should disappear.

I am still concerned about the second part of your original posting, that is the
part about

"An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)


I don't understand that unless you are trying to create another selfcert DC with
the same name as your original.

Maybe an idea to open MMC and delete the selfcert DC from both folders and start
over building a new one.


Gord Dibben MS Excel MVP


On Sun, 1 Apr 2007 17:41:51 -0400, Stan Brown
wrote:

Thanks, Gord.

Maybe this is the problem: the certificate shows up both in Personal
and in Trusted Root.

Should I delete one or both of them?

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/


Sun, 01 Apr 2007 09:25:49 -0700 from <Gord Dibben
<gorddibbATshawDOTca:
Stan

Have a go at changing the DC to a Trusted Certifiicate.

With Excel closed......................

StartRun "mmc" to open the Microsoft Management Console.

FileAdd/Remove Snap-in. Select Certificates snap-in.

Expand and open Personal Certificates folder.

Select your SelfCert DC and drag it to the Trusted Root
CertificatesCertificates folder.

Close MMC...........you can save changes to Comsole1.msc if you choose, but not
necessary unless you want the snap-in to stay loaded.

Now open Excel and your workbook.

Any difference?


Gord Dibben MS Excel MVP

On Sun, 1 Apr 2007 09:24:10 -0400, Stan Brown
wrote:

(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Problem with digital certificate

Stan

Sounds like the SelfCert process is gibbled somehow.

May have to do with OS permissions or somesuch. I don't know enough to
trouble-shoot. Are you logged in as Administrator?

SelfCert is installed as part of Office Shared Features during installation and
must have been working at some point in order for you to create DC's.

You could try a Detect and Repair from Help.

In short...........no more ideas about why you can no longer create DC's or why
the valid one stopped working.


Gord


On Sun, 1 Apr 2007 21:17:50 -0400, Stan Brown
wrote:

Hi, Gord.

No, neither the Personal one nor the Trusted Root one has a red
cross. Under "Certification path", "Certificate stats", both say the
certificate is OK.

(puzzled) No, the old name is Stan Brown - Tompkins County and the
new name was Stan Brown at Oak Road Systems.

Oh dear. I deleted both those certificates, then tried to create a
new one. "An error occurred during certificate creation. Selfcert was
unable to create your certificate." I am certain that there is no
name conflict -- there are no certificates in Personal and there's
nothing in Trusted Root that starts with Stan.

Help!

Sun, 01 Apr 2007 17:00:50 -0700 from <Gord Dibben
<gorddibbATshawDOTca:
Stan

I have the same DC's in both folders and see no negative effects.

If you double-click on the DC in your Personal Folder does it still have the big
red cross on it signifying not trusted?

Once moved to the Trusted Root folder that red cross should disappear.

I am still concerned about the second part of your original posting, that is the
part about

"An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)


I don't understand that unless you are trying to create another selfcert DC with
the same name as your original.

Maybe an idea to open MMC and delete the selfcert DC from both folders and start
over building a new one.


Gord Dibben MS Excel MVP


On Sun, 1 Apr 2007 17:41:51 -0400, Stan Brown
wrote:

Thanks, Gord.

Maybe this is the problem: the certificate shows up both in Personal
and in Trusted Root.

Should I delete one or both of them?

Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/


Sun, 01 Apr 2007 09:25:49 -0700 from <Gord Dibben
<gorddibbATshawDOTca:
Stan

Have a go at changing the DC to a Trusted Certifiicate.

With Excel closed......................

StartRun "mmc" to open the Microsoft Management Console.

FileAdd/Remove Snap-in. Select Certificates snap-in.

Expand and open Personal Certificates folder.

Select your SelfCert DC and drag it to the Trusted Root
CertificatesCertificates folder.

Close MMC...........you can save changes to Comsole1.msc if you choose, but not
necessary unless you want the snap-in to stay loaded.

Now open Excel and your workbook.

Any difference?


Gord Dibben MS Excel MVP

On Sun, 1 Apr 2007 09:24:10 -0400, Stan Brown
wrote:

(Office 2003 Professional)

I created a digital certificate for myself a few days ago, so that I
could sign my own macros and not get the macro warning when I open my
workbook. It worked fine for a few days, but now it's stopped
working.

The first symptom this morning was that when I opened my workbook a
message displayed my certificate name and something to the effect of
"You should not trust macros from this publisher". No problem, I
thought, I'll just re-sign the VBA.

When I tried that, the actual signing went fine but on saving the
workbook I got "There was a problem with the digital certificate. The
VBA project could not be signed. The signature will be discarded."
(exact text) When I closed and reopened the workbook, I got the macro
warning and when I checked I found the VBA was no longer signed.

I thought this might just be a problem with this workbook, so I did a
copy/paste of the VBA to a new workbook's VBA module. (I copied the
VBA by highlighting all the code and doing Ctrl-C, not by copying the
modules in the Explorer-style pane of the VB Editor.) Same problem:
I could sign the new book but got the above message on saving.

Okay, so I tried to create myself a new certificate. (Microsoft
Office Tools Digital Certificate for VBA). This time I get "An
error occurred during certificate creation. Selfcert was unable to
create your certificate." (exact text)

Neither of those messages is very helpful about how to remedy the
problem. I've only signed two workbooks at this point, so I don't
mind starting over if that's the easiest way. Advice?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Certificate gloria81101 Excel Discussion (Misc queries) 1 March 7th 07 05:31 PM
Transfer existing digital certificate clapper Excel Discussion (Misc queries) 2 February 2nd 06 10:53 PM
How to protect a excel sheet using Digital certificate Sinu Excel Discussion (Misc queries) 0 January 6th 06 04:18 PM
Security Certificate Rich57 Excel Worksheet Functions 0 October 3rd 05 10:15 PM
digital certificate for my macros with SelfCert.exe MVM Excel Discussion (Misc queries) 1 January 26th 05 09:38 PM


All times are GMT +1. The time now is 11:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"